Skip to content

Commit

Permalink
remove LanSearchExt, increase search interval
Browse files Browse the repository at this point in the history
  • Loading branch information
DavidVentura committed May 3, 2024
1 parent dc43a66 commit 03893f8
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions discovery.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,17 +32,12 @@ export const discoverDevices = (discovery_ip: string): EventEmitter => {
logger.info(`Searching for devices on ${discovery_ip}`);

let ls_buf = create_LanSearch();
let lse_buf = create_LanSearchExt();
setInterval(() => {
logger.log("trace", `>> LanSearch`);
sock.send(new Uint8Array(ls_buf.buffer), SEND_PORT, discovery_ip);
logger.log("trace", `>> LanSearchExt`);
sock.send(new Uint8Array(lse_buf.buffer), SEND_PORT, discovery_ip);
}, 2000);
}, 3000);
logger.log("trace", `>> LanSearch`);
sock.send(new Uint8Array(ls_buf.buffer), SEND_PORT, discovery_ip);
logger.log("trace", `>> LanSearchExt`);
sock.send(new Uint8Array(lse_buf.buffer), SEND_PORT, discovery_ip);
});

sock.bind();
Expand Down

0 comments on commit 03893f8

Please sign in to comment.