Close

The Web Server

A project log for ESP 8266 Web Server

A web server to display data from ESP8266/ESP32 WiFi devices

Michael O'TooleMichael O'Toole 08/26/2015 at 20:050 Comments

Update (Nov 2015)

I am looking to change from a fully fledged WAMP server to a much simpler server requiring little or no configuration. Currently I'm looking at Mongoose as it supports MQTT but am as yet undecided...

Changing the server will probably result in loss of database support, so to overcome this, I will be switching to a file based storage mechanism...

...

Here's some more info on the Web Server.

Our database contains a record for each ESP8266 device including, mode (client or server), which GPIO pins it uses (and their current state), whether it uses ADC and if so, its trigger level. We also record relevant dates and times, battery condition, device IP etc...

All database records are editable and we can add as many as we require. We can even query a device using it's IP and obtain some information to make adding some devices easier. For example, we can request information for a server at 192.168.1.5 and it will returns a list of GPIO pins it uses and their current state... this makes adding servers much easier...

Clients can be programmed to send the same information on a button push and again this information can be displayed to assist in adding a device. I believe ESP8266 devices can be programmed as both client and server, if so, I will add the option to retrieve a given devices configuration information during the adding new device process...

From out point of view, Clients send data to the server and Servers receive data from the server although two way communication is possible...

When programming ESP8266 devices whether they be client or server we add code to facilitate retrieving their configuration and status...

Discussions