ble needs to be constructed
This commit is contained in:
parent
1fef6d6925
commit
139c72caee
5
index.js
5
index.js
|
@ -295,12 +295,11 @@ function bleGetState () {
|
||||||
|
|
||||||
function init () {
|
function init () {
|
||||||
createServer()
|
createServer()
|
||||||
|
intval.init()
|
||||||
|
ble = new BLE(bleGetState)
|
||||||
ble.on('data', (str) => {
|
ble.on('data', (str) => {
|
||||||
console.log(str)
|
console.log(str)
|
||||||
})
|
})
|
||||||
intval.init()
|
|
||||||
ble = new BLE(bleGetState)
|
|
||||||
}
|
}
|
||||||
|
|
||||||
init()
|
init()
|
||||||
|
|
Loading…
Reference in New Issue