Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Fork of Pi_Swarm_Blank by
Diff: main.cpp
- Revision:
- 5:70a83245e681
- Parent:
- 4:823174be9a6b
- Child:
- 7:d03e54d9eb1c
--- a/main.cpp Tue Feb 18 17:18:43 2014 +0000
+++ b/main.cpp Wed Jun 11 14:14:50 2014 +0000
@@ -56,6 +56,7 @@
// If the communication stack is not being used, all radio data is sent to processRawRFData() instead
void handleUserRFCommand(char sender, char broadcast_message, char request_response, char id, char is_command, char function, char * data, char length){
+ pc.printf("Command:%s\n",data);
// A 'user' RF Command has been received: write the code here to process it
// sender = ID of the sender, range 0 to 31
// broadcast_message = 1 is message sent to all robots, 0 otherwise
@@ -70,6 +71,7 @@
}
void handleUserRFResponse(char sender, char broadcast_message, char success, char id, char is_command, char function, char * data, char length){
+ pc.printf("Response:%s\n",data);
// A 'user' RF Response has been received: write the code here to process it
// sender = ID of the sender, range 0 to 31
// broadcast_message = 1 is message sent to all robots, 0 otherwise
