![](/media/cache/img/default_profile.jpg.50x50_q85.jpg)
pre commentaire
Dependencies: EthernetInterface WebSocketClient mbed-rtos mbed
Fork of Code_APP3_C by
xbee.h
- Committer:
- ericbisson
- Date:
- 2017-02-14
- Revision:
- 9:400cfcf4b06e
- Child:
- 10:565271e4d52a
File content as of revision 9:400cfcf4b06e:
#include "mbed.h" #ifndef XBEE_H #define XBEE_H struct Addresse_64Bit { char bit[8]; }; struct Addresse_16Bit { char bit[2]; }; struct CArray { char* _ptr; short size; char _FrameType; Addresse_64Bit _64bit; Addresse_16Bit _16bit; char* options; char opt_size; }; char calculate_checksum(CArray* message, short header_size); void send(Serial* COM, CArray* message); void read(Serial* COM, CArray* returnValue); void read(Serial* COM, CArray* returnValue); void setPAN(Serial* COM, short pan_id); #endif // XBEE_H