Yet Another Arduserver!

ESP8266_web_server_for_FW002_Mk3-1:ICH07a's fork

Version: vers 08 Feb 17. Fork of 'Mk3'. Fork started 7 Feb 17

Created early Jan 2017, using the wonderful ESP8266 Thing from Sparkfun,and the software provided by them and by others. (See code)

The hardware that is serving this page cost $16. For details, see my page with the details, including the sourcecode, for the server this comes from.

An Arduserver is a little demo of how you can set up a small web-server which will allow someone with a browser to control outputs and read inputs remotely, across the internet with nothing more than a browswer.

Furthermore, due to the following two odd lines, the Arduserver is machine friendly, and data can be read from the Arduserver by programs running in computers elsewhere. So, for instance, if you wanted an alarm to ring at location A when the temperature at location B dropped below say, 40 degrees Fahrenheit, that could be arranged if you had an Arduserver at B, and an automatic Watch the Arduserver program running at A.

hhhhsttthhhhstttb
0001+1687979+1861


Cycles since Arduserver last booted: 2087856727

Analog Pin = 398
Digital Pin 12 = 1

A little test... will a larger 'page' 'break' the server?

1-123456789012345678901234567890
2-123456789012345678901234567890
3-123456789012345678901234567890
4-123456789012345678901234567890
5-123456789012345678901234567890
6-123456789012345678901234567890
7-123456789012345678901234567890
8-123456789012345678901234567890
9-123456789012345678901234567890
10-123456789012345678901234567890
11-123456789012345678901234567890
12-123456789012345678901234567890
13-123456789012345678901234567890
14-123456789012345678901234567890
15-123456789012345678901234567890
16-123456789012345678901234567890
17-123456789012345678901234567890
18-123456789012345678901234567890
19-123456789012345678901234567890
20-123456789012345678901234567890
21-123456789012345678901234567890
22-123456789012345678901234567890
23-123456789012345678901234567890
24-123456789012345678901234567890
25-123456789012345678901234567890
26-123456789012345678901234567890
27-123456789012345678901234567890
28-123456789012345678901234567890
29-123456789012345678901234567890
30-123456789012345678901234567890



Hmmmm... it seems that the web server creation is more robust than it was a few years ago (2013?). A page this 'big' would have caused arcane and tedious problems once upon a time. Hurrah for THIS kind of 'progress'!
It also seems that the 's+=' mechanism (see code) is quite powerful, and can handle a LONG string! (^_^)... but not and endless one.
I very nearly didn't catch this... my test of 30 lines of about 30 characters was NEARLY passed. I overlooked a few chars truncated from this paragraph for a few days. Adding the extra client.print(s) marked //to flush s fixed things.

End of page from Arduserver.com