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:
2
index.js
2
index.js
@ -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...");
|
||||
|
Reference in New Issue
Block a user