DE: Ein sehr, sehr einfacher Webserver mithilfe eines ESP8266 auf dem die AT-Firmware läuft . Für Bulme Bertl. - EN: A very, very, basic web server that works using an ESP8266 running the AT-Firmware.
Dependents: BULME_BERTL17_WebServer_ESPAT Bravo Team
Click here for example code!
DE:
Ein sehr, sehr einfacher Webserver mithilfe eines ESP8266 auf dem die AT-Firmware läuft. Getestet mit einem ESP-01 Modul am Bulme Bertl 2017 (LPC11U68).
EN:
A very, very, basic web server that works using an ESP8266 running the AT-Firmware. Tested with an ESP-01 Module and Bulme Bertl 2017 (LPC11U68).
Diff: ESPAT.cpp
- Revision:
- 1:aa115daaaa02
- Parent:
- 0:afba75b3b390
- Child:
- 2:61ed6c1c9bdd
--- a/ESPAT.cpp Mon Feb 18 21:31:03 2019 +0000 +++ b/ESPAT.cpp Tue Feb 19 12:49:56 2019 +0000 @@ -82,7 +82,10 @@ void ESPAT::tcpReply(int linkId, string data) { espSerial.printf("AT+CIPSEND=%d,%d\r\n", linkId, data.length()); wait(0.1); // Can't use waitFor here as it isn't fast enough - espSerial.printf(data.c_str()); + for (int i = 0; i < data.length(); i++) { + // Artificially slowing down this to prevent errors + espSerial.printf("%c", data[i]); + } waitFor("SEND OK"); espSerial.printf("AT+CIPCLOSE=%d\r\n", linkId); waitFor("OK");