This example demonstrates using the GattClient API to control BLE client devices. The canonical source for this example lives at https://github.com/ARMmbed/mbed-os-example-ble/tree/master/BLE_LEDBlinker

Revision:
4:9a6b0d5ea664
Parent:
0:86bf1d2040b3
Child:
12:059c7b7fb18a
--- a/source/main.cpp	Sat Jul 30 00:01:16 2016 +0100
+++ b/source/main.cpp	Tue Aug 02 10:00:42 2016 +0100
@@ -174,7 +174,7 @@
 int main()
 {
     triggerLedCharacteristic = false;
-    eventQueue.post_every(periodicCallback, 500);
+    eventQueue.post_every(500, periodicCallback);
 
     BLE &ble = BLE::Instance();
     ble.onEventsToProcess(scheduleBleEventsProcessing);