diff --git a/index.js b/index.js index 2099f11..338c1b0 100644 --- a/index.js +++ b/index.js @@ -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) })