diff --git a/index.js b/index.js index 70c95d8..2099f11 100644 --- a/index.js +++ b/index.js @@ -295,12 +295,11 @@ function bleGetState () { function init () { createServer() - + intval.init() + ble = new BLE(bleGetState) ble.on('data', (str) => { console.log(str) }) - intval.init() - ble = new BLE(bleGetState) } init()