Coordinator code
Dependencies: EthernetInterface WebSocketClient mbed-rtos mbed
Xbee.h@0:4cb87eb1f914, 2016-02-18 (annotated)
- Committer:
- vinbel93
- Date:
- Thu Feb 18 13:21:58 2016 +0000
- Revision:
- 0:4cb87eb1f914
Coordinator
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
vinbel93 | 0:4cb87eb1f914 | 1 | #include "mbed.h" |
vinbel93 | 0:4cb87eb1f914 | 2 | #include <string> |
vinbel93 | 0:4cb87eb1f914 | 3 | |
vinbel93 | 0:4cb87eb1f914 | 4 | #pragma once |
vinbel93 | 0:4cb87eb1f914 | 5 | |
vinbel93 | 0:4cb87eb1f914 | 6 | #define START_BYTE 0x7E |
vinbel93 | 0:4cb87eb1f914 | 7 | |
vinbel93 | 0:4cb87eb1f914 | 8 | bool readPacket(Serial* pc, Serial* xbee, char* output); |
vinbel93 | 0:4cb87eb1f914 | 9 | void setPanId(Serial* xbee, unsigned long long panId); |
vinbel93 | 0:4cb87eb1f914 | 10 | char checksum(char* frame, int begin, int end); |
vinbel93 | 0:4cb87eb1f914 | 11 | void parse(char* buffer, int size, char* output); |