My peripheral uses "LongWrite".
Communication with Central has been successful.
I want to know the length of the written data.
After trying the following, the obtained result was "0".
([Long Write]length:0)
Is there a way to get length information?
============
static void ble_evt_handler(ble_evt_t const * p_ble_evt, void * p_context)
{
//...Omitted...
switch (p_ble_evt->header.evt_id)
{
//...Omitted...
case BLE_GATTS_EVT_WRITE:
if(p_ble_evt->evt.gatts_evt.params.write.op == BLE_GATTS_OP_EXEC_WRITE_REQ_NOW)
{
/** Long Write! **/
NRF_LOG_INFO("[Long Write]length:%d", p_ble_evt->evt.gatts_evt.params.write.len);
//To process long writing
}
break;
//...Omitted...
}
}
============
The environment in use is below.
・SDK15
・Nrf 52
・Nrf 52832_xxaa
・S132_nrf52_6.0.0_softdevice.hex
・Referenced(infocenter.nordicsemi.com/index.jsp