jhuh

Dependents:   robot_final

Revision:
2:7d02a128e1e3
Parent:
1:7cc085e87bb0
Child:
4:f597583e8b55
diff -r 7cc085e87bb0 -r 7d02a128e1e3 Bluetooth_HC05_LE_TRAME.h
--- a/Bluetooth_HC05_LE_TRAME.h	Fri Mar 17 18:14:59 2017 +0000
+++ b/Bluetooth_HC05_LE_TRAME.h	Sat Mar 18 11:13:44 2017 +0000
@@ -1,11 +1,16 @@
 #include "mbed.h"
 
 
+#define longueur_trame 4
+
 class Bluetooth_HC05_LE_TRAME
 {
     
     protected:
      char flush;
+     
+     char buf[longueur_trame];
+     
     
      
     
@@ -17,9 +22,10 @@
     ~Bluetooth_HC05_LE_TRAME();
     
     
-    
+
      void envoyer(char* envoi);
-     char recevoir(int longueur);
+     void recevoir();
+     char * getBuf();
     void resetBuffer();
     int donneesRecue();