• The modification has been done in this way:

    case BLE_GATTS_EVT_WRITE: {
            // Peripheral's Characteristic was written to
            const ble_gatts_evt_write_t * p_evt_write = &p_ble_evt->evt.gatts_evt.params.write;
            // TODO: detect if this was a nus write. If so, DO NOT create an event for it!
            // We got a param write event - add this to the bluetooth event queue
            
            jsiConsolePrintf("indication confirmed!");
    
            jsble_queue_pending_buf(BLEP_WRITE, p_evt_write->handle, (char*)p_evt_write->data, p_evt_write->len);
            jsble_peripheral_activity(); // flag that we've been busy
            break;
          }
    

    Everytime an BLE_GATTS_EVT_HVC event is raised from the softdevice, indication confirmed! is printed in the console. This is a really good start.

    Now I just need to understand how to update this in order to be able to react on this event on the JS layer. If anyone has a clue, Please share :-)

About