Projet_S5 / Mbed 2 deprecated Repo_Noeud_Mobile_refactor

Dependencies:   mbed-rtos mbed

Fork of Repo_Noeud_Mobile by Projet_S5

Communication/Xbee.h

Committer:
pete1801
Date:
2015-04-06
Revision:
38:0196baea1d35
Parent:
37:28f1122a858c
Parent:
36:e587950c288c
Child:
39:558cd5780490

File content as of revision 38:0196baea1d35:

#include "mbed.h"
#include "rtos.h"
#include "Structure.h"

class Xbee
{
    public :
        Xbee();
        Xbee(short panId, PinName pinTx, PinName pinRx);
        ~Xbee();
        
        Mail<message_vers_mobile,32> MailboxReception;
        void Recevoir();
        void EnvoyerStructure(Mobile_Vers_Fixe mvf);
    private:
        Serial* XbeePin;
        short PanId;
        
        void EnvoyerDonnees(char data[], int messageSize);
        void Envoyer(char array[], int size);
        void SetPanId(short panId);
};