This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

how to maintain peripheral connection while sending non-connectable advertisement (broadcast)

Hi,

I have 3 devices that all act as broadcaster and observer they continuesly sending data to each other, now i want to establish a connection between one of those 3 and a smartphone but i'm facing a problem as i sending advertise for a connection, there are and error  for a functions: nrf_sdh_enable_request, ble_radio_notification_init, nrf_sdh_ble_enable, sd_ble_gap_adv_set_configure all retuns an invalid_state error.

i've tried to stop the advertisement first using sd_ble_gap_adv_stop() it's solves the error problem but there is problem with the connection it's says that the connection has time out unexpectedly.

what should i do to establish a connection while sending a broadcast at the same time?

Related