Merge branch 'master' into patch-3
This commit is contained in:
@@ -15,14 +15,13 @@ export const pair = ({ opts, ssid, password }: { opts: opt; ssid: string; passwo
|
|||||||
}
|
}
|
||||||
|
|
||||||
const onLogin = (s: Session) => {
|
const onLogin = (s: Session) => {
|
||||||
configureWifi(ssid, password);
|
configureWifi(ssid, password)(s);
|
||||||
console.log(`WiFi config for camera ${s.devName} is done`);
|
console.log(`WiFi config for camera ${s.devName} is done`);
|
||||||
}
|
}
|
||||||
|
|
||||||
devEv.on("discover", (rinfo: RemoteInfo, dev: DevSerial) => {
|
devEv.on("discover", (rinfo: RemoteInfo, dev: DevSerial) => {
|
||||||
if (dev.devId in sessions && sessions[dev.devId] != undefined) {
|
if (dev.devId in sessions) {
|
||||||
console.log(`Camera ${dev.devId} at ${rinfo.address} already discovered, ignoring`);
|
console.log(`Camera ${dev.devId} at ${rinfo.address} already discovered, ignoring`);
|
||||||
console.log(`ignoring ${dev.devId} - ${rinfo.address}`);
|
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
console.log(`Discovered camera ${dev.devId} at ${rinfo.address}`);
|
console.log(`Discovered camera ${dev.devId} at ${rinfo.address}`);
|
||||||
|
|||||||
Reference in New Issue
Block a user