Difference between revisions of "ESP8266EX HTTPD"
(Created page with "<span style="color:red;">This page is currently under construction and is daily updated with new information.</span> =Website= A small HTTP server is running inside the ESP8...") |
|||
Line 31: | Line 31: | ||
The [[IC_ESP|IC_ESP library]] provides a simple interface to handle all requests. | The [[IC_ESP|IC_ESP library]] provides a simple interface to handle all requests. | ||
+ | <!-- | ||
=direct register access= | =direct register access= | ||
− | |||
− | |||
=complex examples= | =complex examples= | ||
− | |||
− | |||
==form== | ==form== | ||
− | |||
− | |||
==javascript== | ==javascript== | ||
− | + | --> | |
− | + | ||
[[Kategorie:radino]] | [[Kategorie:radino]] |
Revision as of 18:34, 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.