SimpleBLE example for mbed OS 5

Dependents:   SimpleBLE-Example-mbedos5

Fork of SimpleBLE by mbed-x

Revision:
8:450b780bb1de
Parent:
6:15ec6cd75928
--- a/SimpleBLE.h	Mon Oct 10 12:45:06 2016 +0200
+++ b/SimpleBLE.h	Mon Aug 14 12:03:15 2017 +0000
@@ -18,7 +18,6 @@
 #include <sstream>
 #include <vector>
 #include <map>
-#include <mbed-events/events.h>
 #include <mbed.h>
 #include "ble/BLE.h"
 
@@ -299,7 +298,7 @@
 
     void scheduleBleEventsProcessing(BLE::OnEventsToProcessCallbackContext* context) {
         BLE &ble = BLE::Instance();
-        eventQueue->post(Callback<void()>(&ble, &BLE::processEvents));
+        eventQueue->call(Callback<void()>(&ble, &BLE::processEvents));
     }
 
     // === START READONLY ===