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:
Mon Mar 25 02:08:29 2019 +0000
Revision:
1:82a90291b795
Child:
2:eaf4e7fa577e
webfile is added

Who changed what in which revision?

UserRevisionLine numberNew 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 <meta name="GENERATOR" content="IBM WebSphere Studio Homepage Builder Version 14.0.8.0 for Windows">
titanium 1:82a90291b795 5 <meta http-equiv="Content-Style-Type" content="text/css">
titanium 1:82a90291b795 6 </head>
titanium 1:82a90291b795 7 <body>
titanium 1:82a90291b795 8 <div style="text-align:center; background-color:#F4F4F4; color:#00AEDB;">
titanium 1:82a90291b795 9 <h1>情報セキュリティ大学院 <br> 松井研 - 2019</h1>
titanium 1:82a90291b795 10 <br><h1>Webサーバー on LPC1768 and ESP8266</h1>
titanium 1:82a90291b795 11 </div><br /><hr>
titanium 1:82a90291b795 12 <div align="center">
titanium 1:82a90291b795 13 <form method="POST"><strong><font size="+2">ADC=$ADVAL$<br>
titanium 1:82a90291b795 14 </font></strong>
titanium 1:82a90291b795 15 <p><strong><font size="+2"><input type="radio" name="led1" value="0" $LED1OFF$> LED 1 off<br>
titanium 1:82a90291b795 16 <input type="radio" name="led1" value="1" $LED1ON$> LED 1 on</font></strong></p>
titanium 1:82a90291b795 17 <p><strong><font size="+2"><input type="radio" name="led2" value="0" $LED2OFF$> LED 2 off
titanium 1:82a90291b795 18 <br>
titanium 1:82a90291b795 19 <input type="radio" name="led2" value="1" $LED2ON$> LED 2 on
titanium 1:82a90291b795 20 </font><!--<p><input type="radio" name="led3" value="0" $LED3OFF$> LED 3 off
titanium 1:82a90291b795 21 <br><input type="radio" name="led3" value="1" $LED3ON$ > LED 3 on --></strong></p>
titanium 1:82a90291b795 22 <p><input type="submit" value="send" style="background: #3498db;
titanium 1:82a90291b795 23 background-image:-webkit-linear-gradient(top, #3498db, #2980b9);
titanium 1:82a90291b795 24 background-image:linear-gradient(to bottom, #3498db, #2980b9);
titanium 1:82a90291b795 25 -webkit-border-radius:12;border-radius: 12px;font-family: Arial;color:#ffffff;font-size:28px;padding:
titanium 1:82a90291b795 26 10px 20px 10px 20px; border:solid #103c57 3px;text-decoration: none;
titanium 1:82a90291b795 27 background: #3cb0fd;">
titanium 1:82a90291b795 28 </form></div>
titanium 1:82a90291b795 29 </body>
titanium 1:82a90291b795 30 </html>