Log the local ip so info is readable server-side as well.

This commit is contained in:
mmcw-dev 2018-01-04 16:12:32 -05:00
parent 3af05e442d
commit 980f1f56c5
1 changed files with 2 additions and 2 deletions

View File

@ -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) {