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

Change advertisement from connectable to non-connectable and changing advdata dynamically

https://devzone.nordicsemi.com/nordic/short-range-guides/b/bluetooth-low-energy/posts/ble-advertising-a-beginners-tutorial

I am starting with this tutorial. I want to program the nrf52840 with a sensor. After I retrieve the data, I hope that I can place the data into the data field.

But how do I update the data field? Should I just change the value of the manuf_data in the for loop in the main function?

Hence, and I would like to ask how do I change the advertisement packet from connectable to non-connectable?