Projet_S5 / Mbed 2 deprecated Repo_Noeud_Mobile_refactor

Dependencies:   mbed-rtos mbed

Fork of Repo_Noeud_Mobile by Projet_S5

Revision:
16:982409595a7a
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/Communication/Xbee.h	Sat Mar 21 17:19:51 2015 +0000
@@ -0,0 +1,21 @@
+#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);
+};
\ No newline at end of file