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:
llarose
Date:
2015-03-21
Revision:
16:982409595a7a

File content as of revision 16:982409595a7a:

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

class Xbee
{
    public :
        Xbee();
        Xbee(short panId, PinName pinTx, PinName pinRx);
        ~Xbee();
        
        Mail<Message,32> Mailbox;
    
        void Envoyer(char array[], int size);
        void Recevoir();
    private:
        Serial* XbeePin;
        short PanId;
    
        void SetPanId(short panId);
};