BLEFixedLengthCharacteristic sends wrong data over read/notifications/indications.
The data that is sent is sometimes random and persists over different payloads and even on reprogramming the board with a different sketch.
Now use the same page again, and instead of 0x01 0x00 0x00...., the output is 0x01 0x61 0x61 ... I got the same output in nRF connect as well. 'a' is 0x61 in ascii.
more information
I'm using the master branch of the sketch. I'm using the NRF52832 chip and platformio ide to program it.
BLEFixedLengthCharacteristic
sends wrong data over read/notifications/indications. The data that is sent is sometimes random and persists over different payloads and even on reprogramming the board with a different sketch.For example, try this sketch
Upload it and open this link to view the data https://googlechrome.github.io/samples/web-bluetooth/notifications-async-await.html?service=0xfff0&characteristic=0xfff1.
after that, reprogram it with this sketch:
Now use the same page again, and instead of
0x01 0x00 0x00....
, the output is0x01 0x61 0x61 ..
. I got the same output in nRF connect as well.'a'
is 0x61 in ascii.more information
I'm using the master branch of the sketch. I'm using the NRF52832 chip and platformio ide to program it.
Here is my platformio.ini file