Do you know how to handle a write event from its (such as char) descriptor value in a customized BLE service ?
Here is the code of my on_write function :
static void on_write(ble_bod_t * p_bod, ble_evt_t const * p_ble_evt)
{
// Check if the handle passed with the event matches the Custom Value Characteristic handle.
if (p_ble_evt->evt.gatts_evt.params.write.handle == p_bod->first_char_handles.value_handle) // If the write event does correspond to the blinky characteristic ...
{
bsp_board_led_invert(BSP_BOARD_LED_0);
} else if (p_ble_evt->evt.gatts_evt.params.write.handle == p_bod->second_char_handles.value_handle) {
change_ble_device_name();
}
}
Setup : nRF52840, SDK 15.0.0, Soft Device s140