Is it possible to trigger updateValueCallback from outside bleno.Characteristic? For example: user pushes a button on the peripheral device, triggering the call to updateValueCallback.
I checked the pizza and echo examples, and both call updateValueCallback within bleno.Characteristic.
Is it possible to trigger
updateValueCallback
from outsidebleno.Characteristic
? For example: user pushes a button on the peripheral device, triggering the call toupdateValueCallback
.I checked the pizza and echo examples, and both call
updateValueCallback
withinbleno.Characteristic
.I also checked SO post: How to implement update value callback when peripheral itself is changing the characteristic value. Here,
setInterval
is called to check if the value has changed. If yes, then callupdateValueCallback
. This seems inefficient. Is there a better way?Thanks!