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: module.json
- Revision:
- 2:401488de6e22
- Parent:
- 1:2fd54f1254fe
- Child:
- 3:41f6be68aefb
--- a/module.json Thu Jul 28 23:14:25 2016 +0100 +++ b/module.json Thu Jul 28 23:32:47 2016 +0100 @@ -1,16 +1,16 @@ -{ - "name": "ble-beacon", - "version": "0.0.1", - "description": "BLE iBeacon example, building with yotta", - "licenses": [ - { - "url": "https://spdx.org/licenses/Apache-2.0", - "type": "Apache-2.0" - } - ], - "dependencies": { - "ble": "^2.0.0" - }, - "targetDependencies": {}, - "bin": "./source" -} +{ + "name": "ble-beacon", + "version": "0.0.1", + "description": "BLE iBeacon example, building with yotta", + "licenses": [ + { + "url": "https://spdx.org/licenses/Apache-2.0", + "type": "Apache-2.0" + } + ], + "dependencies": { + "ble": "^2.0.0" + }, + "targetDependencies": {}, + "bin": "./source" +}