From 139c72caee243a8985dbdfe3f03c1be246c0353f Mon Sep 17 00:00:00 2001 From: mmcwilliams Date: Mon, 11 Dec 2017 14:41:44 -0500 Subject: [PATCH] ble needs to be constructed --- index.js | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) 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()