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

Use radio notification to change advertising message in nrf52832

I'm a newbie to nrf52832 and would like to ask a dumb question here: can I use radio notification to implement a dynamic advertising message? I've looked into this question (devzone.nordicsemi.com/.../) and it sounded like it worked in the nrf51822 case, but when I try with nrf52832 (PCA10040 eva kit, S132 v2 softdevice, sdk_v11.0.0) it would not work. I've attached the main.c that I use for my testing which is the beacon example with the extra radio notification code from the devzone tutorial. The function advertising_reinit() is the one invoked by the radio notification, and if I uncomment the ble_advdata_set() call the whole beacon would stop working (I suspect a crash).

Any help/feedback will be much appreciated here!

main.c

Parents Reply Children
No Data
Related