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

Revision:
28:9090fe431353
Parent:
12:af576944a152
Child:
45:0d307fc39fd0
--- a/source/main.cpp	Tue May 09 14:45:23 2017 +0100
+++ b/source/main.cpp	Wed May 10 10:15:35 2017 +0100
@@ -21,9 +21,7 @@
 
 static iBeacon* ibeaconPtr;
 
-static EventQueue eventQueue(
-    /* event count */ 4 * /* event size */ 32    
-);
+static EventQueue eventQueue(/* event count */ 4 * EVENTS_EVENT_SIZE);
 
 /**
  * This function is called when the ble initialization process has failled