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?

Parents
  • could you please explain how to use ble_advdata_set() inorder to update my data on each advertising event . the advertising_init() already have ble_advdata_set() func !!!! but it is not updating my value

  • Thanks nikitha ! i couldnt find the radio notification event () funtion !!! Am using the proximity example.now am trying to add scanresponse data as two numbers .Now during advertising those number should increment .It should increment on each advertising event .I displayed the scanned data but i couldnt update the values .The ble_advdata_set() is already called once by default in advertising init . but i dint understand where to use it again !

Reply
  • Thanks nikitha ! i couldnt find the radio notification event () funtion !!! Am using the proximity example.now am trying to add scanresponse data as two numbers .Now during advertising those number should increment .It should increment on each advertising event .I displayed the scanned data but i couldnt update the values .The ble_advdata_set() is already called once by default in advertising init . but i dint understand where to use it again !

Children
No Data
Related