AT commands entered in PC-serial are sent to WROOM2. After WiFi connection is established, ADC value and LED control buttons appear in the browser.
Dependencies: mbed
webfile.htm should be stored in the MBED flash memory so the WROOM2 program can read it in /local/webfile.htm. Some keywords such as $LED1ON$ are substituted by a real text by the program, and the entire page is sent to a requester of the http connection. The size of webfile.htm cannot exceed 2kB. The extension of the filename must be three characters and .html is not allowed by the mbed file system library.
webfile.htm@2:eaf4e7fa577e, 2019-03-25 (annotated)
- Committer:
- titanium
- Date:
- Mon Mar 25 05:53:15 2019 +0000
- Revision:
- 2:eaf4e7fa577e
- Parent:
- 1:82a90291b795
pc.printf() cannot be assigned to char *;
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
titanium | 1:82a90291b795 | 1 | <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> |
titanium | 1:82a90291b795 | 2 | <html lang="ja"><head><title>IISEC - Matsui Lab</title> |
titanium | 1:82a90291b795 | 3 | <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> |
titanium | 1:82a90291b795 | 4 | </head> |
titanium | 1:82a90291b795 | 5 | <body> |
titanium | 1:82a90291b795 | 6 | <div style="text-align:center; background-color:#F4F4F4; color:#00AEDB;"> |
titanium | 1:82a90291b795 | 7 | <h1>情報セキュリティ大学院 <br> 松井研 - 2019</h1> |
titanium | 1:82a90291b795 | 8 | <br><h1>Webサーバー on LPC1768 and ESP8266</h1> |
titanium | 1:82a90291b795 | 9 | </div><br /><hr> |
titanium | 1:82a90291b795 | 10 | <div align="center"> |
titanium | 1:82a90291b795 | 11 | <form method="POST"><strong><font size="+2">ADC=$ADVAL$<br> |
titanium | 1:82a90291b795 | 12 | </font></strong> |
titanium | 1:82a90291b795 | 13 | <p><strong><font size="+2"><input type="radio" name="led1" value="0" $LED1OFF$> LED 1 off<br> |
titanium | 1:82a90291b795 | 14 | <input type="radio" name="led1" value="1" $LED1ON$> LED 1 on</font></strong></p> |
titanium | 1:82a90291b795 | 15 | <p><strong><font size="+2"><input type="radio" name="led2" value="0" $LED2OFF$> LED 2 off |
titanium | 1:82a90291b795 | 16 | <br> |
titanium | 1:82a90291b795 | 17 | <input type="radio" name="led2" value="1" $LED2ON$> LED 2 on |
titanium | 1:82a90291b795 | 18 | </font><!--<p><input type="radio" name="led3" value="0" $LED3OFF$> LED 3 off |
titanium | 1:82a90291b795 | 19 | <br><input type="radio" name="led3" value="1" $LED3ON$ > LED 3 on --></strong></p> |
titanium | 1:82a90291b795 | 20 | <p><input type="submit" value="send" style="background: #3498db; |
titanium | 1:82a90291b795 | 21 | background-image:-webkit-linear-gradient(top, #3498db, #2980b9); |
titanium | 1:82a90291b795 | 22 | background-image:linear-gradient(to bottom, #3498db, #2980b9); |
titanium | 1:82a90291b795 | 23 | -webkit-border-radius:12;border-radius: 12px;font-family: Arial;color:#ffffff;font-size:28px;padding: |
titanium | 1:82a90291b795 | 24 | 10px 20px 10px 20px; border:solid #103c57 3px;text-decoration: none; |
titanium | 1:82a90291b795 | 25 | background: #3cb0fd;"> |
titanium | 1:82a90291b795 | 26 | </form></div> |
titanium | 1:82a90291b795 | 27 | </body> |
titanium | 1:82a90291b795 | 28 | </html> |