Sending large HTML file with ESP8266 at commands
Posted: Thu Aug 05, 2021 3:36 pm
Hello
I would need some help with this
I am trying to make a web server with the esp8266 and currently testing the page
I could reach the final step and the page even works, properly displays and I could perfectly communicate throught the browser with my ESP(added some buttons and so), but the problem comes when expanding the page
ESP's send limit is 2048 bytes so for the complete version of the webpage I need to send the data through at least 3 CIPSEND, which sends it perfectly, but when I finish, use the CIPCLOSE and look at the page its completely brokenWhen I download the page as an HTML file the code lots of characters are missing (most precisely the ones at the end/beginnig of each SEND)
Am I missing a step?
This is my proceidure (I use 0,Lenght because my MUX is set to 1)
-> AT+CIPSEND=0,<length of first>
-> <!DOCTYPE html>
<html lang="en"><head> <meta http-equiv="content-type" content="text/html; charset=UTF-8"> <meta charset="UTF-8"> <title>ESP8266 SERVER</title> </head> <body style="background-color:rgba(5, 14, 38, 0.85);"> ...
-> AT+CIPSEND=0,<length of script>
-> <script>...</script>
-> AT+CIPSEND=0,<length of lastpart>
-> ... </body></html>
-> AT+CIPCLOSE=0
I also have the UART USB adapter to communicate with cutecom and still could not make it work!
Thank you for reading!
I would need some help with this
I am trying to make a web server with the esp8266 and currently testing the page
I could reach the final step and the page even works, properly displays and I could perfectly communicate throught the browser with my ESP(added some buttons and so), but the problem comes when expanding the page
ESP's send limit is 2048 bytes so for the complete version of the webpage I need to send the data through at least 3 CIPSEND, which sends it perfectly, but when I finish, use the CIPCLOSE and look at the page its completely brokenWhen I download the page as an HTML file the code lots of characters are missing (most precisely the ones at the end/beginnig of each SEND)
Am I missing a step?
This is my proceidure (I use 0,Lenght because my MUX is set to 1)
-> AT+CIPSEND=0,<length of first>
-> <!DOCTYPE html>
<html lang="en"><head> <meta http-equiv="content-type" content="text/html; charset=UTF-8"> <meta charset="UTF-8"> <title>ESP8266 SERVER</title> </head> <body style="background-color:rgba(5, 14, 38, 0.85);"> ...
-> AT+CIPSEND=0,<length of script>
-> <script>...</script>
-> AT+CIPSEND=0,<length of lastpart>
-> ... </body></html>
-> AT+CIPCLOSE=0
I also have the UART USB adapter to communicate with cutecom and still could not make it work!
Thank you for reading!