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

change data in ble beacon advertisement

Hello Nordic

 

I am working with nrf52832, sdk 16.0, softdevice s132

I need to advertise NON CONNECTABLE ble with changeable data (later relevant data will be received from uart -> so later it will have to be advertised by command and not all the time, but for simplicity I will start with advertising in a fixed intervals and I need to change the data in the packets.

So I started with the ble_app_beacon example and I added a timer handler to change some data bytes in the 'm_beacon_info' buffer, every second but it seems the data sent in the ble does not change from the initial dataset in the advertising_init ()

How can I change this without going to the MAJOR/MINOR register (I have read this somewhere, this allows me to change only a small part of the allowed data bytes)?

... forgot to mention i need to work with eddystone and send only TLM type

well.. actually it does not have to be eddystone but i do need to be able to send a big packet with 255 bytes of data .. and preferable several times every second, each msg designated to a different group of units, so different id or uid needs to be set as well

Best regards

Ziv

Related