how to To display uuid,major,minor values and the battery life using Ble_app_beacon example or any other example
how to To display uuid,major,minor values and the battery life using Ble_app_beacon example or any other example
Major and minor are only useful for proximity applications. Most people repurpose one or both of them for battery info and other info. Otherwise you have to add and broadcast the battery service. Since each one is 16 bits wide you can normally shove quite a few extra attributes into the available space.
i need to display uuid,major,minor values and the battery life for that what should i do
i need to display uuid,major,minor values and the battery life for that what should i do
The BLE beacon example broadcasts a beacon advertisement. The beacon packet is completely full when you advertise major and minor ID's. So you can't just add in battery level.
If you want battery and major and minor you have to add code to broadcast the battery service. The ble_app_bps and ble_app_hrs both implement the battery service.
Also, the ble_app_proximity broadcasts the battery service. Since it sounds like it is intended for proximity beacons that broadcast battery level. It could be a good place for you to start.