Error sending array > around 255 bytes
Posted: Tue Oct 15, 2019 9:22 am
I modded the Espwho code so that it has an extra page that draws a google chart, the data for the chart is on a another page in the form of a json.
The chart auto updates with jquery every minute, the data table gets another value every minute too.
When the table gets around 255 bytes long the send command causes the Esp to crash, telling me the cause was httpd.
The data is stored in a char array.
The line I use to send the reply is:
httpd_resp_send(req, buf, strlen(buf));
Buf is a char array.
Any pointers?, I notice on some examples that a uint_t is sometimes used as the data type.
The chart auto updates with jquery every minute, the data table gets another value every minute too.
When the table gets around 255 bytes long the send command causes the Esp to crash, telling me the cause was httpd.
The data is stored in a char array.
The line I use to send the reply is:
httpd_resp_send(req, buf, strlen(buf));
Buf is a char array.
Any pointers?, I notice on some examples that a uint_t is sometimes used as the data type.