Skip to content

Instantly share code, notes, and snippets.

@thebadger412
Created December 29, 2012 19:37
Show Gist options
  • Save thebadger412/4408879 to your computer and use it in GitHub Desktop.
Save thebadger412/4408879 to your computer and use it in GitHub Desktop.
socket.on('sendSerial', function(data) {
console.log("Client sent us: " + data + "to send to serial");
sp.write(mbBuffer, function (err, bytesWritten) {
console.log('bytes written:', bytesWritten);
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment