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

Changing advertisement data while advertising

I try to achieve something similar to IBeacon where data is pushed to any device listening, but where the data is changing over time. Is it possible to (frequently) change the advertisement data (such as the Manufacturer specific data) after a BLE peripheral starts advertisement? Or do I need that explicitly stop and start advertising with new data, or think of another solution to achieve pushing data to BLE scanners without setting up a connection?

  • Thankyou Nikitha finally it worked !!

  • Hi, When I'm trying to call ble_advdata_set(&advdata,&scanrsp) after a radio signal notification, the function return an invalid parameters error... Do you have any exemple to use sd_ble_gap_adv_data_set(), or ble_advdata_set() ? Thanks,

  • What is the difference here than calling advertising_init() and advertising_start() again, each time you want to change the adv packet?

  • Nikita,

    I am trying to change advertising when it is advertising using UART i.e., if I type anything on UART it should change the advertising data as coded by me. I have modifiedg ble_app_uart_s130_pca10028 example for this application to work. But its not working. Please help!!!

  • Hi, I need to do the same with nRF8001. Within GAP settings, I would set "Service Data" in "Selected fields to advertise" (ACI Bond for example), create characteristic with property "Set pipe" then use "SetLocalData" to modify the data but how do I specify this characteristic to be the "Service data" to be advertised ? I can't understand how advertisement packet bits "uuid lsb" and "uuid msb" have to be set/used... I finally wrote a question, see "Service data in advertisement packets"

Related