Push dev work to master #2
|
@ -134,7 +134,7 @@ class BLE {
|
||||||
log.info('stateChange', { state : state })
|
log.info('stateChange', { state : state })
|
||||||
if (state === 'poweredOn') {
|
if (state === 'poweredOn') {
|
||||||
log.info('Starting advertising', { BLE_ID : BLE_ID })
|
log.info('Starting advertising', { BLE_ID : BLE_ID })
|
||||||
bleno.startAdvertising(BLE_ID, [CHAR_ID, WIFI_ID])
|
bleno.startAdvertising(BLE_ID, [CHAR_ID])
|
||||||
} else {
|
} else {
|
||||||
bleno.stopAdvertising()
|
bleno.stopAdvertising()
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue