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:
28:64621b6587e1
Parent:
12:059c7b7fb18a
Child:
45:9fe6d1e21b8a
--- a/source/main.cpp	Tue May 09 14:46:01 2017 +0100
+++ b/source/main.cpp	Wed May 10 10:17:12 2017 +0100
@@ -25,9 +25,7 @@
 static bool triggerLedCharacteristic;
 static const char PEER_NAME[] = "LED";
 
-static EventQueue eventQueue(
-    /* event count */ 16 * /* event size */ 32    
-);
+static EventQueue eventQueue(/* event count */ 16 * EVENTS_EVENT_SIZE);
 
 void periodicCallback(void) {
     alivenessLED = !alivenessLED; /* Do blinky on LED1 while we're waiting for BLE events */