[solved] How to send value of buttons to sonic pi via a node.js server

Hi,
I’m currently trying to send information from multiple devices via osc to a node.js server to sonic pi.
At the moment I can send a string to sonic pi telling it the address of the button I am pressing but I don’t know how to send the value of the button being pressed so Sonic Pi can actually play it.

Sonic Pi is currently reporting this in the cues for a button press : /osc/test/toggle1 1 [ ]
I am sending the string with the address and value but dont know how to send a matching float with the value

Any help would be really appreciated!

Node.js Code:

var udp = require('dgram');
var osc = require('osc-min');
var util = require('util');

var inport = 8000, outport = 9000;      // listen for devices via TouchOSC on port 8000
var soincpiIn = 7000;                   // listen for SonicPi on port 7000
var device = {};            // array of devices connected

sock = udp.createSocket("udp4", function(msg, deviceInfo) {   //function to connect devices
   var error;
   var ip = deviceInfo.address;
   if (!device[ip]) {                           //if device does not already exist, add as new
       console.log('adding new device: ' + ip);
       device[ip] = {inst: 0, pat: 0, sync: true};
    //   refresh(ip);
   }
//   try {
       var data = osc.fromBuffer(msg);
      console.log(ip + ' Device| button address: ' + data.address + ' | Value: ' + data.args[0].value);
       var code = data.address + " " + data.args[0].value
       runSPI(code); // send to sonic pi
 //  } catch (err) {
  //     return console.log(err.stack.split("\n"));
 //  }

});
var sonicpiTimeout = null;
sonicpiSock = udp.createSocket("udp4",function(msg,deviceInfo) { // function to connect to sonic pi
   var error;

   if(sonicpiTimeout == null){
       console.log('SonicPi is online');
   }
   else console.log(err);
});

sock.bind(8000, function(err) {             //set up on port 8000
   if (err) console.log(err);
   else console.log('Listening for TouchOSC devices on port 8000');
});

sonicpiSock.bind(7000, function(err){   //set up on port 7000
   if(err) console.log(err);
   else console.log('Ready for Sonic Pi on port 7000');
});

function runSPI(code) {            // Code to send device data from node.js to Sonic Pi
   var ip = "192.168.2.140"
   console.log("SENT TO SONICPI " + code);
   sock.send(code, 4559, ip);  // send to sonic pi on port 4559, localhost
}

Solved the problem.
I sent the address and float value together inside a buffer