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

Data advertisement in Ble_App_Uart

I want to advertise a data in ble_app_uart  continuously after equal interval of time. Can you please give me some clue. I don't want to use beacon here

Parents
  • Hi,

    If you want to advertise continuously in the ble_app uart example then you can set APP_ADV_DURATION to 0. The peripheral will then advertise continuously until a central connects to it. If you wish to continue advertising after a connection then you would have to call advertising_start() in the BLE_GAP_EVT_CONNECTED event in the ble_evt_handler. 

    Note: You would have to increase the link count in the sdk_config.h file if you wish to connect to more centrals simultaneously. 

    regards

    Jared

Reply
  • Hi,

    If you want to advertise continuously in the ble_app uart example then you can set APP_ADV_DURATION to 0. The peripheral will then advertise continuously until a central connects to it. If you wish to continue advertising after a connection then you would have to call advertising_start() in the BLE_GAP_EVT_CONNECTED event in the ble_evt_handler. 

    Note: You would have to increase the link count in the sdk_config.h file if you wish to connect to more centrals simultaneously. 

    regards

    Jared

Children
Related