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.

Committer:
titanium
Date:
Thu Jul 08 09:12:13 2021 +0000
Revision:
6:e6134051068d
webfile.htm should be encoded in UTF-8.

Who changed what in which revision?

UserRevisionLine numberNew contents of line
titanium 6:e6134051068d 1 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
titanium 6:e6134051068d 2 <html lang="ja"><head><title>IISEC - Matsui Lab</title>
titanium 6:e6134051068d 3 <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
titanium 6:e6134051068d 4 </head>
titanium 6:e6134051068d 5 <body>
titanium 6:e6134051068d 6 <div style="text-align:center; background-color:#F4F4F4; color:#00AEDB;">
titanium 6:e6134051068d 7 <h1>情報セキュリティ大学院 <br> 松井研 - 2019</h1>
titanium 6:e6134051068d 8 <br><h1>Webサーバー on LPC1768 and ESP8266</h1>
titanium 6:e6134051068d 9 </div><br /><hr>
titanium 6:e6134051068d 10 <div align="center">
titanium 6:e6134051068d 11 <form method="POST"><strong><font size="+2">ADC=$ADVAL$<br>
titanium 6:e6134051068d 12 </font></strong>
titanium 6:e6134051068d 13 <p><strong><font size="+2"><input type="radio" name="led1" value="0" $LED1OFF$> LED 1 off<br>
titanium 6:e6134051068d 14 <input type="radio" name="led1" value="1" $LED1ON$> LED 1 on</font></strong></p>
titanium 6:e6134051068d 15 <p><strong><font size="+2"><input type="radio" name="led2" value="0" $LED2OFF$> LED 2 off
titanium 6:e6134051068d 16 <br>
titanium 6:e6134051068d 17 <input type="radio" name="led2" value="1" $LED2ON$> LED 2 on
titanium 6:e6134051068d 18 </font><!--<p><input type="radio" name="led3" value="0" $LED3OFF$> LED 3 off
titanium 6:e6134051068d 19 <br><input type="radio" name="led3" value="1" $LED3ON$ > LED 3 on --></strong></p>
titanium 6:e6134051068d 20 <p><input type="submit" value="send" style="background: #3498db;
titanium 6:e6134051068d 21 background-image:-webkit-linear-gradient(top, #3498db, #2980b9);
titanium 6:e6134051068d 22 background-image:linear-gradient(to bottom, #3498db, #2980b9);
titanium 6:e6134051068d 23 -webkit-border-radius:12;border-radius: 12px;font-family: Arial;color:#ffffff;font-size:28px;padding:
titanium 6:e6134051068d 24 10px 20px 10px 20px; border:solid #103c57 3px;text-decoration: none;
titanium 6:e6134051068d 25 background: #3cb0fd;">
titanium 6:e6134051068d 26 </form></div>
titanium 6:e6134051068d 27 </body>
titanium 6:e6134051068d 28 </html>