Hi All,
Are there any updated examples for nrf51822 for writing long charecteristics. My Application has to receive more than 20 bytes at a time and send over uart.
I am using experimental/ble_app_uart as starting point. I tried modifying the on_write function in service to check
if(p_evt_write->op == BLE_GATTS_OP_EXEC_WRITE_REQ_NOW)
{
if ((p_evt_write->handle == p_nus->tx_handles.value_handle))
{
p_nus->data_handler(p_nus, p_evt_write->data, p_evt_write->len);
}
else
{
// Do Nothing. This event is not relevant to this service.
}
}
But not getting anything on console. Without any modification app works fine for 20 bytes write. Even If send more than 20 bytes from android app it prints only 20 bytes.
Also my app requirement is to receive variable length writes from client to server.
What/Where changes needs to be made to make it working for writing more than 20 bytes ?
Am new to BLE development. Trying to learn by doing.
Thanks in Advance