diff --git a/lib/ble/index.js b/lib/ble/index.js index 2be0f0c..b902854 100644 --- a/lib/ble/index.js +++ b/lib/ble/index.js @@ -89,6 +89,7 @@ function onWifiRead (offset, callback) { const result = bleno.Characteristic.RESULT_SUCCESS const wifiRes = {} let data + log.info('Getting wifi data for onWifiRead') wifi.list((err, list) => { if (err) { result = bleno.Characteristic.RESULT_UNLIKELY_ERROR diff --git a/lib/wifi/index.js b/lib/wifi/index.js index dc70d1d..db57125 100644 --- a/lib/wifi/index.js +++ b/lib/wifi/index.js @@ -64,7 +64,7 @@ class Wifi { data = data.replace(networkPattern, _entry) } _entry = null - fs.writeFile(filePath, data, 'utf8', this._writeConfigCb) + //fs.writeFile(filePath, data, 'utf8', this._writeConfigCb) } /** * (internal function) Invoked after config file is written,