Difference between revisions of "ESP8266EX HTTPD"

From InCircuit
Jump to: navigation, search
Line 41: Line 41:
 
-->
 
-->
  
[[Kategorie:radino]]
+
[[Category:radino]]

Revision as of 18:38, 4 March 2015

This page is currently under construction and is daily updated with new information.

Website

A small HTTP server is running inside the ESP8266EX chip. The website is stored as a single HTML page inside the flash of the ESP8266EX chip.

A simple webpage can look like this:

 <html>
 <h1>Hello World!</h1>
 </html>

This page will not create any requests.

If you place a register name (within '%') inside the HTML page, a EVENT_HTTP_GET_REQUEST is created. In the following example uses the register 1042.

 <html>
 <span>%1042%</span>
 </html>

The event created by the ESP when the website is visited will be a EVENT_HTTP_GET_REQUEST for register 1042. The raw event is an event command (header IE) with type string, event type is HTTPD GET request. The register will be a 4 byte bytearray containing "1042".

Important: At the moment register names and values can only be 4 digit numbers.

The IC_ESP library provides a simple interface to handle all requests.

Personal tools