Ahh, ok, thanks! So the CCCD Handle not found error is coming from Espruino via ble_uart.
When a device provides a 'characteristic' that provides notifications when its value changes, it's supposed to have another characteristic linked to that one called a CCCD that allows you to switch those characteristics on or off.
It would seem that the Bluefruit is providing the UART TX data characteristic, but somehow the CCCD that's supposed to be for it can't be found by Espruino.
Without me having a Bluefruit here it might be a bit hard for me to track this down.
However looking back, it seems that you didn't really want the two-way communication anyway? You just wanted to be able to send some data without disconnecting?
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.
Ahh, ok, thanks! So the
CCCD Handle not found
error is coming from Espruino viable_uart
.When a device provides a 'characteristic' that provides notifications when its value changes, it's supposed to have another characteristic linked to that one called a CCCD that allows you to switch those characteristics on or off.
It would seem that the Bluefruit is providing the UART TX data characteristic, but somehow the CCCD that's supposed to be for it can't be found by Espruino.
Without me having a Bluefruit here it might be a bit hard for me to track this down.
However looking back, it seems that you didn't really want the two-way communication anyway? You just wanted to be able to send some data without disconnecting?
In that case we can just modify the code from https://www.espruino.com/modules/ble_simple_uart.js slightly and include it in your folder directly:
Just tried this - not on a feather though, and it works well for me - and automatically reconnects if there's no connection