From 980f1f56c5566e7f97b693edc7af41d8113f82ea Mon Sep 17 00:00:00 2001 From: mmcw-dev Date: Thu, 4 Jan 2018 16:12:32 -0500 Subject: [PATCH] Log the local ip so info is readable server-side as well. --- lib/ble/index.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/ble/index.js b/lib/ble/index.js index 8bb39ea..cce3991 100644 --- a/lib/ble/index.js +++ b/lib/ble/index.js @@ -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) {