BLE Advertising sample application
This example shows how to advertise a value of battery service data. The battery value is simulated. The battery level is a percentage, with 100% being a fully charged battery and 0% being a fully drained battery. The level starts at 50% and drains every second second, until it hits 10% when it jumps to 100% and continues draining.
mbed_app.json
- Committer:
- apalmieri
- Date:
- 2021-01-14
- Revision:
- 0:7373a1c9d5b4
File content as of revision 0:7373a1c9d5b4:
{
"target_overrides": {
"*": {
"platform.stdio-baud-rate": 115200
},
"K64F": {
"target.components_add": ["BlueNRG_MS"],
"target.features_add": ["BLE"],
"target.extra_labels_add": ["CORDIO"]
},
"NUCLEO_F401RE": {
"target.components_add": ["BlueNRG_MS"],
"target.features_add": ["BLE"],
"target.extra_labels_add": ["CORDIO"]
},
"NRF52840_DK": {
"target.features_add": ["BLE"]
},
"NRF52_DK": {
"target.features_add": ["BLE"]
}
}
}
X-NUCLEO-IDB05A1 Bluetooth Low Energy