Another possibility would be to set value to some observable object and have updates be automatically reflected in the characteristic but it may overly complicate things.
An explicit write seems to be simpler to use and document...
Espruino is a JavaScript interpreter for low-power Microcontrollers. This site is both a support community for Espruino and a place to share what you are working on.
Another possibility would be to set
value
to some observable object and have updates be automatically reflected in the characteristic but it may overly complicate things.An explicit
write
seems to be simpler to use and document...