This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts
This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

problems in advertsing after disconnect

hiii....

1.can any one tell where do we call advertising_start() function if we want to advertise after getting disconnect from a central device.

2.in ble_evt_dispatch() function there are many functions ryt? eg: ble_dlogs_on_ble_evt(&m_dlogs, p_ble_evt); ble_conn_params_on_ble_evt(p_ble_evt); on_ble_evt(p_ble_evt);

when and how these works?

Parents
  • john

    thanks for the replay.your second answer clear my doubt..

    1. i am trying to develop a custom profile with concurrent broadcast feature. ie. when ever there is an active connection device starts a non-connectable advertisement.. if get disconnected it starts connectable advertisement.

    what we are doing is in on_ble_evt() function. in case BLE_GAP_EVT_CONNECTED: starts non-connectable advertsement and in case BLE_GAP_EVT_DISCONNECTED:stops non-connectable advertisement and starts connectable advertisement.

    everything working fine. but some times even though there is no active connection device shows non connectable advertisement... my assumption is may be disconnect event is not properly receiving.. is there any chance to miss disconnect event? or i have to call advertisements some where else too/...?

Reply
  • john

    thanks for the replay.your second answer clear my doubt..

    1. i am trying to develop a custom profile with concurrent broadcast feature. ie. when ever there is an active connection device starts a non-connectable advertisement.. if get disconnected it starts connectable advertisement.

    what we are doing is in on_ble_evt() function. in case BLE_GAP_EVT_CONNECTED: starts non-connectable advertsement and in case BLE_GAP_EVT_DISCONNECTED:stops non-connectable advertisement and starts connectable advertisement.

    everything working fine. but some times even though there is no active connection device shows non connectable advertisement... my assumption is may be disconnect event is not properly receiving.. is there any chance to miss disconnect event? or i have to call advertisements some where else too/...?

Children
No Data
Related