Fork of Farrukh's webserver. Tested on LPC1768 and STM32f401 but should work on almost any platform.
New version that has been tested on LPC1768 and STM32F401 Based on Farrukh's idea here: https://os.mbed.com/users/programmer5/code/STM32-ESP8266-WEBSERVER/
Enter your Wi-Fi SSID and PASSWORD and edit the espbaud to suit your ESP8266, Works fast and stable at 460800.
Use configuration program to reset and set up the ESP8266 if needed:
https://os.mbed.com/users/star297/code/ESP8266-configuaration-baudrate/
Limitations are no HTTPS.
Revision 7:26dab90b464f, committed 2020-04-21
- Comitter:
- star297
- Date:
- Tue Apr 21 09:32:28 2020 +0000
- Parent:
- 6:9f3f0db71230
- Commit message:
- code tidy
Changed in this revision
main.cpp | Show annotated file Show diff for this revision Revisions of this file |
diff -r 9f3f0db71230 -r 26dab90b464f main.cpp --- a/main.cpp Tue Apr 21 09:31:19 2020 +0000 +++ b/main.cpp Tue Apr 21 09:32:28 2020 +0000 @@ -49,8 +49,8 @@ AnalogIn tempSensor(A0); */ -char ssid[32] = "Molino Metz"; // enter your router ssid inside the quotes -char pwd[32] = "36693557"; // enter your router password inside the quotes +char ssid[32] = "ssid"; // enter your router ssid inside the quotes +char pwd[32] = "password"; // enter your router password inside the quotes #define BUFFER_SIZE 3000 #define REQ_LINE_BUFF_SIZE 100