Keypad

Dependencies:   BLE_API mbed nRF51822

Fork of EmtpyProgram by Cataract Gemuese

Files at this revision

API Documentation at this revision

Comitter:
Cataract
Date:
Wed Jul 13 08:45:53 2016 +0000
Parent:
1:115afdfbaa84
Commit message:
removed unnecessary outputs

Changed in this revision

main.cpp Show annotated file Show diff for this revision Revisions of this file
diff -r 115afdfbaa84 -r 343f39defab2 main.cpp
--- a/main.cpp	Tue Jul 12 14:35:09 2016 +0000
+++ b/main.cpp	Wed Jul 13 08:45:53 2016 +0000
@@ -24,7 +24,7 @@
 
 void sendToken()
 {
-    pc.printf("Token");
+    pc.printf("Send Token");
     alivenessLED4 = !alivenessLED4;
     
     //init SPI
@@ -62,12 +62,12 @@
 // Callback for the BLE connection
 void onDataWrittenCallback(const GattWriteCallbackParams* params) 
 {
-    pc.printf("read");
+    //pc.printf("read");
     alivenessLED3 = !alivenessLED3;
     // if countdata == 0 the data will be interpretated as the Number of 20-byte blocks to be written.
     if (countdata == 0){
             
-        pc.printf("%u\r\n",*(uint32_t *) params->data);
+        //pc.printf("%u\r\n",*(uint32_t *) params->data);
         
         countdata = *(uint32_t *) params->data;
         
@@ -76,7 +76,7 @@
     } else {
         
         //If countdata is set the data will be interpretated as a string and concatenated to the previously recieved message
-        pc.printf("Data: %s\r\n %d",params->data,countdata);
+        //pc.printf("Data: %s\r\n %d",params->data,countdata);
         memcpy(cpy, params->data, 20);
         cpy[20] = '\0'; 
         strcat(message,cpy);