Fixed error

On my RPi3 I'm seeing a failure to find units because send() is demanding a Buffer or String. Uint8Array works for me in every other environment I've tried, but something about the RPi wants this to be a buffer. Having it as a buffer also works in other environments, thankfully.
This commit is contained in:
2018-04-23 23:21:01 -05:00
parent e1c775b8a8
commit 1f83be8e10

View File

@ -44,7 +44,7 @@ class FindUnits extends EventEmitter {
}
sendServerBroadcast() {
var message = new Uint8Array(8);
var message = Buffer.alloc(8);
message[0] = 1;
this.finder.send(message, 0, message.length, 1444, "255.255.255.255");
//console.log("Looking for ScreenLogic hosts...");