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.

Revision:
6:e6134051068d
diff -r 5c9022a234ef -r e6134051068d webfile-sjis.htm
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/webfile-sjis.htm	Thu Jul 08 09:12:13 2021 +0000
@@ -0,0 +1,28 @@
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
+<html lang="ja"><head><title>IISEC - Matsui Lab</title>
+<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
+</head>
+<body>
+<div style="text-align:center; background-color:#F4F4F4; color:#00AEDB;">
+<h1>情報セキュリティ大学院 <br> 松井研 - 2019</h1>
+<br><h1>Webサーバー on LPC1768 and ESP8266</h1>
+</div><br /><hr>
+<div align="center">
+<form method="POST"><strong><font size="+2">ADC=$ADVAL$<br>
+</font></strong>
+<p><strong><font size="+2"><input type="radio" name="led1" value="0" $LED1OFF$>  LED 1 off<br>
+<input type="radio" name="led1" value="1" $LED1ON$>  LED 1 on</font></strong></p>
+<p><strong><font size="+2"><input type="radio" name="led2" value="0" $LED2OFF$>  LED 2 off
+<br>
+<input type="radio" name="led2" value="1" $LED2ON$>  LED 2 on
+</font><!--<p><input type="radio" name="led3" value="0" $LED3OFF$>  LED 3 off
+<br><input type="radio" name="led3" value="1" $LED3ON$ >  LED 3 on --></strong></p>
+<p><input type="submit" value="send" style="background: #3498db;
+background-image:-webkit-linear-gradient(top, #3498db, #2980b9);
+background-image:linear-gradient(to bottom, #3498db, #2980b9);
+-webkit-border-radius:12;border-radius: 12px;font-family: Arial;color:#ffffff;font-size:28px;padding:
+10px 20px 10px 20px; border:solid #103c57 3px;text-decoration: none;
+background: #3cb0fd;">
+</form></div>
+</body>
+</html>
\ No newline at end of file