Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
wifiesp8266.h
- Committer:
- schnf30
- Date:
- 2021-05-23
- Revision:
- 0:5339903aacbc
- Child:
- 1:227c9c991c1b
File content as of revision 0:5339903aacbc:
#ifndef _WifiEsp8266_
#define _WifiEsp8266_
// taille maximum d'une phrase recue
#define maxdata 20
#define Baud 921600
class WifiEsp8266 : public RawSerial
{
public:
// WifiEsp8266(PinName Txd, PinName Rxd, PinName En);
WifiEsp8266(PinName Txd, PinName Rxd,PinName En);
void receive(); //recoit les data gps et les stocks puis produit les donnees en cas de reception
bool dataready(void);
char * read(void);
private:
// reception phrase Serial
char _DataTmp[maxdata + 1]; // tableau de donnees pour stocker pendant reception
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