Log the local ip so info is readable server-side as well.
This commit is contained in:
parent
3af05e442d
commit
980f1f56c5
|
@ -80,7 +80,7 @@ function onWifiWrite (data, offset, withoutResponse, callback) {
|
|||
}
|
||||
currentWifi = ssid
|
||||
currentAddr = getIp()
|
||||
log.info(`Connected to AP`, { ssid : ssid })
|
||||
log.info(`Connected to AP`, { ssid : ssid, ip : currentAddr })
|
||||
result = bleno.Characteristic.RESULT_SUCCESS
|
||||
return callback(result)
|
||||
})
|
||||
|
@ -207,7 +207,7 @@ class BLE {
|
|||
}
|
||||
currentWifi = ssid
|
||||
currentAddr = getIp()
|
||||
log.info('wifi.getNetwork', {ssid : ssid})
|
||||
log.info('wifi.getNetwork', {ssid : ssid, ip : currentAddr })
|
||||
})
|
||||
}
|
||||
_onWrite (data, offset, withoutResponse, callback) {
|
||||
|
|
Loading…
Reference in New Issue