wifisp1

Committer:
schnf30
Date:
Sun Jun 06 12:19:53 2021 +0000
Revision:
1:227c9c991c1b
Parent:
0:5339903aacbc
a

Who changed what in which revision?

UserRevisionLine numberNew contents of line
schnf30 0:5339903aacbc 1 #ifndef _WifiEsp8266_
schnf30 0:5339903aacbc 2 #define _WifiEsp8266_
schnf30 0:5339903aacbc 3 // taille maximum d'une phrase recue
schnf30 1:227c9c991c1b 4 #define maxdata 100
schnf30 0:5339903aacbc 5 #define Baud 921600
schnf30 0:5339903aacbc 6 class WifiEsp8266 : public RawSerial
schnf30 0:5339903aacbc 7 {
schnf30 0:5339903aacbc 8 public:
schnf30 1:227c9c991c1b 9 WifiEsp8266(PinName Txd, PinName Rxd);
schnf30 0:5339903aacbc 10 void receive(); //recoit les data gps et les stocks puis produit les donnees en cas de reception
schnf30 0:5339903aacbc 11 bool dataready(void);
schnf30 0:5339903aacbc 12 char * read(void);
schnf30 0:5339903aacbc 13 private:
schnf30 0:5339903aacbc 14 // reception phrase Serial
schnf30 0:5339903aacbc 15 char _DataTmp[maxdata + 1]; // tableau de donnees pour stocker pendant reception
schnf30 0:5339903aacbc 16 char _Data[maxdata + 1]; // tableau de donnees lorsque toutes les donnees sont recues
schnf30 0:5339903aacbc 17 int _DataPtr = 0; // position de stockage de la prochaine donnee a recevoir
schnf30 0:5339903aacbc 18 bool _DataReady = false;
schnf30 0:5339903aacbc 19 };
schnf30 0:5339903aacbc 20 #endif