This example creates a BLE beacon: a method of advertising a small amount of information to nearby devices. The information doesn't have to be human-readable; it can be in a format that only an application can use. Beacons are very easy to set up: the code for all beacons is the same, and only the information you want to advertise - the beacon payload - needs to change. he canonical source for this example lives at https://github.com/ARMmbed/mbed-os-example-ble/tree/master/BLE_Beacon
Diff: mbed_app.json
- Revision:
- 70:5575d1bee775
- Parent:
- 39:31c398bdb3bb
- Child:
- 76:652c2be531c7
--- a/mbed_app.json Wed Aug 29 14:45:14 2018 +0100 +++ b/mbed_app.json Tue Sep 04 14:30:12 2018 +0100 @@ -2,15 +2,15 @@ "target_overrides": { "K64F": { "target.features_add": ["BLE"], - "target.extra_labels_add": ["ST_BLUENRG"] + "target.extra_labels_add": ["CORDIO", "CORDIO_BLUENRG"] }, "NUCLEO_F401RE": { "target.features_add": ["BLE"], - "target.extra_labels_add": ["ST_BLUENRG"] + "target.extra_labels_add": ["CORDIO", "CORDIO_BLUENRG"] }, "DISCO_L475VG_IOT01A": { "target.features_add": ["BLE"], - "target.extra_labels_add": ["ST_BLUENRG"] + "target.extra_labels_add": ["CORDIO", "CORDIO_BLUENRG"] } } }