Skip to content

Commit 82db44d

Browse files
committed
update screenshots
1 parent af6a3dc commit 82db44d

File tree

4 files changed

+6
-13
lines changed

4 files changed

+6
-13
lines changed

examples/sqlite3_webquery/sqlite3_webquery.ino

Lines changed: 6 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -72,18 +72,11 @@ void handleRoot() {
7272
temp = "<html><head>\
7373
<title>ESP8266 Demo</title>\
7474
<style>\
75-
body { background-color: #cccccc; font-family: Arial, Helvetica, Sans-Serif; font-size: large; Color: #000088; }\
75+
body { font-family: Arial, Helvetica, Sans-Serif; font-size: large; Color: #000088; }\
7676
</style>\
7777
</head>\
7878
<body>\
7979
<h1>Hello from ESP8266!</h1>\
80-
<p>Uptime: ";
81-
temp += hr;
82-
temp += ":";
83-
temp += min % 60;
84-
temp += ":";
85-
temp += sec % 60;
86-
temp += "</p>\
8780
<h2>Query gendered names database</h2>\
8881
<form name='params' method='GET' action='query_db'>\
8982
Enter from: <input type=text style='font-size: large' value='Bob' name='from'/> \
@@ -216,10 +209,10 @@ void setup ( void ) {
216209
server.setContentLength(CONTENT_LENGTH_UNKNOWN);
217210
String resp = "<html><head><title>ESP8266 Database query through web server</title>\
218211
<style>\
219-
body { background-color: #cccccc; font-family: Arial, Helvetica, Sans-Serif; font-size: large; Color: #000088; }\
220-
</style><head><body><h1>ESP8266 Database query through web server</h1><h2>";
212+
body { font-family: Arial, Helvetica, Sans-Serif; font-size: large; Color: #000088; }\
213+
</style><head><body><h1>ESP8266 Database query through web server</h1><h3>";
221214
resp += sql;
222-
resp += "</h2><br><table cellspacing='1' cellpadding='1' border='1'><tr><td>Year</td><td>State</td><td>Name</td><td>Total babies</td><td>Primary Sex</td><td>Ratio</td><td>Per 100k</td></tr>";
215+
resp += "</h3><table cellspacing='1' cellpadding='1' border='1'><tr><td>Year</td><td>State</td><td>Name</td><td>Total babies</td><td>Primary Sex</td><td>Ratio</td><td>Per 100k</td></tr>";
223216
server.send ( 200, "text/html", resp.c_str());
224217
while (sqlite3_step(res) == SQLITE_ROW) {
225218
resp = "<tr><td>";
@@ -240,7 +233,7 @@ void setup ( void ) {
240233
server.sendContent(resp);
241234
rec_count++;
242235
}
243-
resp = "</table><br><br>Number of records: ";
236+
resp = "</table><br>Number of records: ";
244237
resp += rec_count;
245238
resp += ".<br><br><input type=button onclick='location.href=\"/\"' value='back'/>";
246239
server.sendContent(resp);
@@ -253,4 +246,4 @@ void setup ( void ) {
253246

254247
void loop ( void ) {
255248
server.handleClient();
256-
}
249+
}

output_web_1.png

-9.58 KB
Loading

output_web_1_2.png

-21.3 KB
Loading

output_web_2.png

-14.8 KB
Loading

0 commit comments

Comments
 (0)