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

Advertise battery level in beacon advertising packet

1. 
2. 
3. 


  1. I am using the ble_app_beacon example as the starting point for my project. I am working on a project where a number of beacons will advertise its identity and battery level to the central node. My question is : how to modify the beacon advertising packet to contain battery level information along with the unique device ID? Which portion of the code in this example shall I modify? I am trying to optimize this device for optimal battery performance as well.
  2. Also how can I read this advertising packet in the central node? What is the relevant example in the SDK to achieve this. I want these nodes to be read as soon as they are detected and then sent over to another module via UART?
  3. I have read somewhere that beacon is public and hence there are security issues involved. Can I instead use connectionless advertising and what is the relevant example in the SDK to achieve this?. I see most of the ble example assumes connection between the peripheral and central devices but this feature is irrelevant to my project.

I am using SDK 17.

I would highly appreciate any help or suggestions. Thank you so much.

Related