Librairie xbee.
Dependents: NerfUS-Coord NerfUSTarget
Fork of APP3_xbee by
Diff: xbee.h
- Revision:
- 4:e97cfe6cc18c
- Parent:
- 3:37ea92feece2
- Child:
- 5:cd3c79853dc8
--- a/xbee.h Sun Feb 12 20:31:46 2017 +0000 +++ b/xbee.h Sun Feb 12 21:33:48 2017 +0000 @@ -14,13 +14,16 @@ const char TRANSMIT_STATUS_SUCCESS = 0x00; const char AT_COMMAND_RESPONSE_STATUS_OK = 0x00; +extern Mail<vector<char>, 30> parsed_frames; + void send_message_via_xbee(const char* message, const int length); vector<char> generate_transmit_request(const char* message, const int length); void read_frame(); vector<char> parse_receive_packet(const vector<char>& frame); vector<char> parse_transmit_status(const vector<char>& frame); vector<char> parse_at_command_response(const vector<char>& frame); -void handle_message(); +void handle_parsed_frames_from_mailbox(); +void handle_frame(const vector<char>& frame); //Simplify the frame to only contain the frame type and the relevant data for our application vector<char> parse_frame(const vector<char>& frame);