When you send value : 0x2C06, Espruino doesn't know it's supposed to be sending 16 bits - it just sends it as an 8 bit value.
I think you probably want: value : [0x2C, 0x06] and that'll fix it.
Those flags are for the characteristic itself (rather than the data) - I really don't think you need to delve that deeply - where's the adafruit example code?
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.
When you send
value : 0x2C06
, Espruino doesn't know it's supposed to be sending 16 bits - it just sends it as an 8 bit value.I think you probably want:
value : [0x2C, 0x06]
and that'll fix it.Those flags are for the characteristic itself (rather than the data) - I really don't think you need to delve that deeply - where's the adafruit example code?