funzionicchia

Fork of mbed-os-example-ble-LED by STarks

Revision:
48:1700da51ef71
Parent:
44:df8adb3bc797
--- a/source/main.cpp	Thu Nov 23 14:00:24 2017 +0000
+++ b/source/main.cpp	Wed Nov 29 13:39:56 2017 +0000
@@ -48,7 +48,10 @@
  */
 void onDataWrittenCallback(const GattWriteCallbackParams *params) {
     if ((params->handle == ledServicePtr->getValueHandle()) && (params->len == 1)) {
-        actuatedLED = *(params->data);
+        int ciao=*(params->data);
+        actuatedLED = ciao;
+            printf("actual led %d \n", ciao);
+
     }
 }