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.
Diff: mbed_app.json
- Revision:
- 0:7373a1c9d5b4
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/mbed_app.json Thu Jan 14 11:25:30 2021 +0000 @@ -0,0 +1,23 @@ +{ + "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"] + } + } +}