funzionicchia

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

Files at this revision

API Documentation at this revision

Comitter:
vidica94
Date:
Wed Nov 29 13:39:56 2017 +0000
Parent:
47:913bdb3e235d
Commit message:
funzionicchia

Changed in this revision

source/main.cpp Show annotated file Show diff for this revision Revisions of this file
--- 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);
+
     }
 }