Yet Another Arduserver!

ESP8266_web_server_for_FW002_Mk3-2

Version: vers 20 Feb 17- HTML enhanced. 3-2 started 20 Feb 17

Created late Feb 17, derived from earlier work, 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.

THIS Arduserver (running ver 3-2) is a 'knobbled' demo of 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. It will tell you the temperature where it is, but the 'turn on LED'/'see it happened' part is absent. (Note to myself: See program code.)

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
0000+2400000-0001


Cycles since Arduserver last booted: 103151867

Analog Pin = 66
Digital Pin 12 = 1

Part of what was a little test... will a larger 'page' 'break' the server?

1-123456789012345678901234567890
2-123456789012345678901234567890
3-123456789012345678901234567890
4-1234....
(Many such lines DIDN'T break the Arduserver they were in.)

It seems that the web server creation is more robust than it was a few years ago (2013?). A page as 'big' as that was 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