Hi,
I have modified the nus service and added two new characteristics called txs and rxs which support read and write protection.
on the peripheral i have set BLE_GAP_CONN_SEC_MODE_SET_LESC_ENC_WITH_MITM for txs and rxs
The service is working as expected from NRF connect for android.
Now I have modified the nus client service as well and implemented my own ble_nus_c_string_send_secure, which writes to the secure characteristic.
I have bonded the central device with nus client to peripheral with nus service.
the ble_nus_c_string_send command works and peripheral receives the string, but ble_nus_c_string_send_secure command returns NRF_SUCCESS but peripheral does not receive the string.
Am I missing something?
for writing to a secured characteristic, do I have to pass more to the sd_ble_gattc_write function?
Thanks,
Raghav