wifisp1

Revision:
1:227c9c991c1b
Parent:
0:5339903aacbc
--- a/wifiesp8266.h	Sun May 23 13:26:59 2021 +0000
+++ b/wifiesp8266.h	Sun Jun 06 12:19:53 2021 +0000
@@ -1,13 +1,12 @@
 #ifndef _WifiEsp8266_
 #define _WifiEsp8266_
 // taille maximum d'une phrase recue
-#define maxdata 20
+#define maxdata 100
 #define Baud 921600
 class WifiEsp8266 : public RawSerial
 {
 public:
- //   WifiEsp8266(PinName Txd, PinName Rxd, PinName En);
-    WifiEsp8266(PinName Txd, PinName Rxd,PinName En);    
+    WifiEsp8266(PinName Txd, PinName Rxd);    
     void receive();  //recoit les data gps et les stocks puis produit les donnees en cas de reception
     bool dataready(void);
     char * read(void);
@@ -17,6 +16,5 @@
     char _Data[maxdata + 1]; // tableau de donnees lorsque toutes les donnees sont recues
     int _DataPtr = 0; // position de stockage de la prochaine donnee a recevoir
     bool _DataReady = false;
-    DigitalOut  _En;
 };
 #endif
\ No newline at end of file