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

Parents Reply Children
  • i work with sdk 16.0 i don't know if that is the reason but i don't have a function 'sd_ble_gap_adv_data_set'

    beside that, (it is not in the first post) i need to understand how to advertise a larger packet then 31 bytes, it does not have to be 255 bytes of data, cause if i understand correct the extended 255 bytes of data advertise is actually sent in 2 packets .. anyway my goal is to send more the 31 bytes of data, without pairing a connection, just broadcasting

Related