Hi Everyone
I am able to configure BLE on the template project and it is sending data from nrf52840 to BLE nrfconnect app using the function nrf_ble_data_send() .
However i am getting into one problem, probably a minor issue.
nrf52840 cannot send data after 1 minute or so and in the DEBUG section or nrf5connect app , i see 0 bytes received.
But if i disable and enable the notification, i can see the data but only for another 1 minute or so.
What could be the reason of such error and how can it be resolved.
Thanks
Rajat!
void ble_init() { bool erase_bonds; timers_init(); ble_stack_init(); gap_params_init(); gatt_init(); services_init(); advertising_init(); conn_params_init(); advertising_start(); } void ble_send(char *data_pointer) { uint16_t temp_len = 0; while(*(data_pointer+temp_len)!='\0') { temp_len++; } uint16_t length = (uint16_t)temp_len; ble_nus_data_send(&m_nus, data_pointer, &length, m_conn_handle); } int main() { ble_init(); while(1) { ble_send("ABC"); nrf_delay_ms(1000); } }