intval.status() not intval.state.

This commit is contained in:
mmcwilliams 2017-12-11 14:57:01 -05:00
parent 76fcc95327
commit 3e9f560db0
1 changed files with 3 additions and 5 deletions

View File

@ -289,14 +289,12 @@ function index (req, res, next) {
})
}
function bleGetState () {
return intval.state
}
function init () {
createServer()
intval.init()
ble = new BLE(bleGetState)
ble = new BLE(() => {
return intval.status()
})
ble.on('data', (str) => {
console.log(str)
})