ble needs to be constructed

This commit is contained in:
mmcwilliams 2017-12-11 14:41:44 -05:00
parent 1fef6d6925
commit 139c72caee
1 changed files with 2 additions and 3 deletions

View File

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