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

  • ya i added it,but its not updating !! This is my scanned response content to be added .but it is not updating !! in data[0] rand() is a random num generator & data[1] =random_value() is a function like this --> int random_val() { j=j+0x05; return j; }

Reply
  • ya i added it,but its not updating !! This is my scanned response content to be added .but it is not updating !! in data[0] rand() is a random num generator & data[1] =random_value() is a function like this --> int random_val() { j=j+0x05; return j; }

Children
No Data
Related