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 XBEE by
Revision 2:983d482357b9, committed 2016-11-03
- Comitter:
- FatCookies
- Date:
- Thu Nov 03 13:06:07 2016 +0000
- Parent:
- 1:ce4058bc0913
- Commit message:
- made things public?
Changed in this revision
| SwitchCase.h | Show annotated file Show diff for this revision Revisions of this file |
| XBEE.h | Show annotated file Show diff for this revision Revisions of this file |
--- a/SwitchCase.h Tue Oct 18 03:58:55 2016 +0000
+++ b/SwitchCase.h Thu Nov 03 13:06:07 2016 +0000
@@ -16,7 +16,7 @@
{
switch(command){
case START:
-
+ (*xbeeSerial).printf("Eeyyyy\0");
break;
case STOP:
--- a/XBEE.h Tue Oct 18 03:58:55 2016 +0000
+++ b/XBEE.h Thu Nov 03 13:06:07 2016 +0000
@@ -18,11 +18,14 @@
// Note this function does not use the comms protocol so won't appear on the status text box, you will have to use putty
+Serial* xbeeSerial; // Pointer to serial class
+CBuffer* cBuffer; // Pointer to circular buffer storing inbound serial data
+
private:
bool scanForStartBytes(); // Synchronise comms
void switchCase(char command); // Process inbound commands
-CBuffer* cBuffer; // Pointer to circular buffer storing inbound serial data
-Serial* xbeeSerial; // Pointer to serial class
+
+
char startBytes[3]; // Temp variables to store inbound start bytes for comms synchronisation
