Quicksand micro-electronics / Mbed 2 deprecated QW-Reactiontime

Dependencies:   mbed

Fork of QW-Reactiontime by Quicksand

Files at this revision

API Documentation at this revision

Comitter:
quicksand
Date:
Thu Dec 15 13:27:19 2016 +0000
Parent:
2:73b5ca784164
Commit message:
changed program ID in Sigfox message

Changed in this revision

main.cpp Show annotated file Show diff for this revision Revisions of this file
diff -r 73b5ca784164 -r 1bc9575369bd main.cpp
--- a/main.cpp	Thu Dec 15 09:57:11 2016 +0000
+++ b/main.cpp	Thu Dec 15 13:27:19 2016 +0000
@@ -114,7 +114,7 @@
             LED_3 = 1;  
             winner = 1;          
             char command[SER_BUFFER_SIZE];
-            sprintf(command, "AT$SF=05%04x%04x,2,0\n", (int) winner, (int) reactionTime );
+            sprintf(command, "AT$SF=06%04x%04x,2,0\n", (int) winner, (int) reactionTime );
             pc.printf("Sending winner = %i and reaction time =  %i ms over Sigfox\n", winner, reactionTime);
             pc.printf("using modem command: %s\n", command);
             modem_command_check_ok(command);
@@ -135,7 +135,7 @@
             LED_3 = 1; 
             winner = 2;           
             char command[SER_BUFFER_SIZE];
-            sprintf(command, "AT$SF=05%04x%04x,2,0\n", (int) winner, (int) reactionTime );
+            sprintf(command, "AT$SF=06%04x%04x,2,0\n", (int) winner, (int) reactionTime );
             pc.printf("Sending winner = %i and reaction time =  %i ms over Sigfox\n", winner, reactionTime);
             pc.printf("using modem command: %s\n", command);
             modem_command_check_ok(command);