ESP8266 operating in AT Command mode connected to the uP via the UART port and configured as a WEB Server,
If requested:
.
please refer to my simple html page.
On the other hand, how to respond to a request:
.
assuming I have defined an icon in ico or png format.
I have solved the situation for now by adding the following to the page header
.
where xxx...xxx is the icon definition encoded in base64.
In this case, the request to upload the icon (for the main page) does not come, but if I switch in the browser to one of the subpages it receives the request again.
Theoretically I could add definitions in each subpage header but I have limited space in the uP and would prefer to just answer the GET correctly.
Greetings
JarekC
PS.
This is my first start with HTML and ESP8266
If requested:
Code: HTML, XML
please refer to my simple html page.
On the other hand, how to respond to a request:
Code: HTML, XML
assuming I have defined an icon in ico or png format.
I have solved the situation for now by adding the following to the page header
Code: HTML, XML
where xxx...xxx is the icon definition encoded in base64.
In this case, the request to upload the icon (for the main page) does not come, but if I switch in the browser to one of the subpages it receives the request again.
Theoretically I could add definitions in each subpage header but I have limited space in the uP and would prefer to just answer the GET correctly.
Greetings
JarekC
PS.
This is my first start with HTML and ESP8266