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 Repo_Noeud_Mobile by
Communication/Xbee.h
- Committer:
- groygirard
- Date:
- 2015-04-12
- Revision:
- 57:ce80fbd67161
- Parent:
- 56:6af8f2c9ddbe
- Child:
- 58:4cdc85ed04a9
File content as of revision 57:ce80fbd67161:
#include "mbed.h" #include "rtos.h" #include "Structure.h" class Xbee { public : Xbee(); Xbee(short panId, PinName pinTx, PinName pinRx); ~Xbee(); void GetData(); //remplace recevoir(); void OutputData(); void ReceivePacket(data* trame); void EnvoyerStructure(Mobile_Vers_Fixe mvf); Mail<Fixe_Vers_Mobile,100> fvm_mailbox; private: Serial* XbeePin; short PanId; char HexToAscii[16]; Mail<data,100> mailbox; void SendData(char data[], int messageSize); void SendXBee(char array[], int size); void SetPanId(short panId); void BuildHexToAsciiTable(); };