Looks from that mod like you're just responding to BLE_GATTS_EVT_WRITE in that code, not BLE_GATTS_EVT_HVC?
BLE_GATTS_EVT_WRITE
BLE_GATTS_EVT_HVC
But I'd create a new BLE_INDICATION (or similar) enum and then do jsble_queue_pending and create a handler for it like is done for BLEP_WRITE
jsble_queue_pending
@Gordon started
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.
Looks from that mod like you're just responding to
BLE_GATTS_EVT_WRITE
in that code, notBLE_GATTS_EVT_HVC
?But I'd create a new BLE_INDICATION (or similar) enum and then do
jsble_queue_pending
and create a handler for it like is done for BLEP_WRITE