Skip to content

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

Merged
merged 26 commits into from
Jul 3, 2018
Merged

Added OTAWebUpdater Doc #1583

merged 26 commits into from
Jul 3, 2018

Conversation

karan6190
Copy link
Contributor

Provided the documentation for OTA through Web Browser

WebServer server(80);

const char* loginIndex = "<form name='loginForm'>"
"<table width='20%' bgcolor='A09F9F' align='center'>"
Copy link
Member

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?

## Implementation
The sample implementation has been done using:
- example sketch OTAWebUpdater.ino
- NodeMCU 1.0 (ESP-12E Module)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ESP-12E ?

@me-no-dev
Copy link
Member

and there is also this

@karan6190
Copy link
Contributor Author

Updated the format of the code and document

@me-no-dev
Copy link
Member

me-no-dev commented Jul 3, 2018

@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>";

@me-no-dev
Copy link
Member

Thanks :)

@me-no-dev me-no-dev merged commit 0161e28 into espressif:master Jul 3, 2018
Curclamas pushed a commit to Curclamas/arduino-esp32 that referenced this pull request Aug 21, 2018
aIecxs pushed a commit to aIecxs/arduino-esp32 that referenced this pull request Oct 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants