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

Eddystone TLM sending a variable data

I want to send a TLM advertisement while encompasses the variable data changing over the time. the eddystone tlm example send the first frame forever not includes changing the variable data in the TLM packet.

Parents
  • You can change the advertising data at any time by calling ble_advdata_set(). Take a look at the function advertising_init(), where eddystone_tlm_data is added to the advertising data. You need to do this update after each change to any of the parameters in eddystone_tlm_data. The simple solution would be to call advertising_init() after every value update, but you might want to create a separate function that only does the neccessary updates to advdata.

Reply
  • You can change the advertising data at any time by calling ble_advdata_set(). Take a look at the function advertising_init(), where eddystone_tlm_data is added to the advertising data. You need to do this update after each change to any of the parameters in eddystone_tlm_data. The simple solution would be to call advertising_init() after every value update, but you might want to create a separate function that only does the neccessary updates to advdata.

Children
Related