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.
Dependencies: LCD_i2c_GSOE ESP8266WebserverGSOE
Diff: main.cpp
- Revision:
- 8:7c2ab1322fb2
- Parent:
- 6:5353c5484d58
- Child:
- 9:f27879c4d306
--- a/main.cpp Mon Jul 26 06:41:11 2021 +0000
+++ b/main.cpp Mon Jul 26 08:02:04 2021 +0000
@@ -24,14 +24,16 @@
string getRootPage()
{
string webpage;
- webpage="<!DOCTYPE html>\n";
+ webpage="<!DOCTYPE html>";
//HTML
- webpage+="<html>\n";
- webpage+="<head>\n";
- webpage+="<title>STM32 HTTP</title>\n";
- webpage+="</head>\n";
- webpage+="<body>\n";
- webpage+="<h1>WIFI mit STM32 ESP01</h1>\n";
+ webpage+="<html>";
+ webpage+="<head>";
+ webpage+="<title>STM32 HTTP</title>";
+ webpage+="</head>";
+ webpage+="<body>";
+ webpage+="<h1>WIFI mit STM32 ESP01</h1>";
+ webpage+="</body>";
+ webpage+="</html>";
return webpage;
}
@@ -42,19 +44,13 @@
}
-int main()
-{
+int main() {
myWebserver.on("/",&testfunc);
-
- myWebserver.begin();
-
+ myWebserver.begin();
myLCD.clear();
myLCD.cursorpos(0);
myLCD.printf("%s",myWebserver.gibIP());
-
- while(1)
- {
+ while(1) {
myWebserver.handleClient();
}
-
}