Hi all. What happends on peripheral side when I use long write by sd_ble_gattc_write as devzone.nordicsemi.com/.../ ?
How Can I read it on peripheral ? Can I use once sd_ble_gatts_value_get or multiple sd_ble_gattc_read ?
Hi all. What happends on peripheral side when I use long write by sd_ble_gattc_write as devzone.nordicsemi.com/.../ ?
How Can I read it on peripheral ? Can I use once sd_ble_gatts_value_get or multiple sd_ble_gattc_read ?
You must use sd_ble_gatts_value_get().
You must use sd_ble_gatts_value_get().
OK. It is ansver for second part of question. What event and parameters I get when transmition is complete on peripheral side? I can use sd_ble_gatts_value_get now, but where ?
This code is solution for first part of question:
if(p_evt_write->op == BLE_GATTS_OP_EXEC_WRITE_REQ_NOW)
{
if(*((uint16_t *)m_mem_block.p_mem) == p_actrl->dhc_handles.value_handle)
{
printf("LONG CHARACTERISTIC WRITTEN!\r\n");
}
}