Search found 2 matches
- Sat Jul 04, 2020 9:08 pm
- Forum: ESP-IDF
- Topic: HTTP Restful Server Example Error
- Replies: 3
- Views: 5379
Re: HTTP Restful Server Example Error
This loop is suspect. It is incrementing `current length' which is an offset into the buffer, but does not decrement `total_len'. That is bound to cause `httpd_req_recv' to overrun the buffer and scribble on something it shouldn't given more than one iteration. Seems the example is written that way...
- Fri Jul 03, 2020 7:47 am
- Forum: ESP-IDF
- Topic: HTTP Restful Server Example Error
- Replies: 3
- Views: 5379
HTTP Restful Server Example Error
Hi everyone, I have been trying to get the POST part of the restful server example to work but it keeps hitting an error and rebooting. Here is my unchanged, apart from a few extra printf statements, POST handler code: /* Simple handler for light brightness control */ static esp_err_t light_brightne...