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-22
Revision:
20:96280625532c
Parent:
9:b8503f5ad3bd
Child:
21:98232c148ed6

File content as of revision 20:96280625532c:

#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);
};