minor changes
This commit is contained in:
parent
02410bc483
commit
850701f7b1
|
@ -1,4 +1,5 @@
|
|||
var readline = require('readline');
|
||||
var dateFormat = require('dateformat');
|
||||
var osc = require('node-osc');
|
||||
|
||||
var listenPort = 8000;
|
||||
|
@ -9,7 +10,8 @@ var oscClient = new osc.Client(hubAddress, hubPort);
|
|||
var oscServer = new osc.Server(listenPort, '0.0.0.0');
|
||||
|
||||
oscServer.on("message", function (msg, rinfo) {
|
||||
console.log("message: " + msg);
|
||||
var dateString = dateFormat(new Date(), "HH:MM:ss.L");
|
||||
console.log(dateString + "\t" + msg);
|
||||
});
|
||||
|
||||
oscClient.send('/subscribe','192.168.23.102', listenPort, "sekret");
|
||||
|
@ -42,4 +44,6 @@ function isNumber(value) {
|
|||
return true;
|
||||
}
|
||||
return !isNaN(value - 0);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
var osc = require('node-osc');
|
||||
|
||||
var hubAddress = '192.168.23.43';
|
||||
var hubPort = 7110;
|
||||
var hubAddress = '192.168.23.31';
|
||||
var hubPort = 2345;
|
||||
|
||||
var oscClient = new osc.Client(hubAddress, hubPort);
|
||||
|
||||
|
@ -15,6 +15,6 @@ function fubs() {
|
|||
|
||||
}
|
||||
|
||||
setInterval(fubs, 200);
|
||||
setInterval(fubs, 50);
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue