-
Notifications
You must be signed in to change notification settings - Fork 7.6k
Added OTAWebUpdater Doc #1583
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Added OTAWebUpdater Doc #1583
Conversation
Added OTA WebUpdater
Updated OTAWebUpdater
OTAWebUpdater doc
WebServer server(80); | ||
|
||
const char* loginIndex = "<form name='loginForm'>" | ||
"<table width='20%' bgcolor='A09F9F' align='center'>" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
can you please structure the html code with proper tabs and spaces?
docs/OTAWebUpdate/OTAWebUpdate.md
Outdated
## Implementation | ||
The sample implementation has been done using: | ||
- example sketch OTAWebUpdater.ino | ||
- NodeMCU 1.0 (ESP-12E Module) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ESP-12E ?
and there is also this |
Updated the format of the code and document |
@karan6190 here is an example format that I meant :) const char* loginIndex =
"<form name='loginForm'>"
"<table width='20%' bgcolor='A09F9F' align='center'>"
"<tr>"
"<td colspan=2><center><font size=4><b>ESP32 Login Page</b></font></center><br></td>"
"<br>"
"<br>"
"</tr>"
"<tr>"
"<td>Username:</td>"
"<td><input type='text' size=25 name='userid'><br></td>"
"</tr>"
"<br>"
"<br>"
"<tr>"
"<td>Password:</td>"
"<td><input type='Password' size=25 name='pwd'><br></td>"
"<br>"
"<br>"
"</tr>"
"<tr>"
"<td><input type='submit' onclick='check(this.form)' value='Login'></td>"
"</tr>"
"</table>"
"</form>"
"<script>"
"function check(form){"
"if(form.userid.value=='admin' && form.pwd.value=='admin'){"
"window.open('/serverIndex')"
"} else {"
"alert('Error Password or Username')/*displays error message*/"
"}"
"}"
"</script>"; |
Thanks :) |
Provided the documentation for OTA through Web Browser