myxbee
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 |
diff -r ce4058bc0913 -r 983d482357b9 SwitchCase.h --- 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:
diff -r ce4058bc0913 -r 983d482357b9 XBEE.h --- 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