Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
var osc = require("osc");
/*******************
* OSC Over Serial *
*******************/
// Instantiate a new OSC Serial Port.
var serialPort = new osc.SerialPort({
devicePath: process.argv[2] || "/dev/tty.usbmodem221361"
});
serialPort.on("message", function (oscMessage) {
console.log(oscMessage);
});
// Open the port.
serialPort.open();
/****************
* OSC Over UDP *
****************/
var getIPAddresses = function () {