ESP8266 Webserver Project

Moderator: Sprite_tm

User avatar
By wesson
#24170 My ESP-01 and ESP-12 are running the esp-ginx firmware. It took a lot of reading and trial and error, but it paid off in the end.

My knowledge of C is very basic, but hope to learn more through reading the code.

If you find yourself in San Francisco have a beer on me :D Thank you for the work put into the project.
User avatar
By Georg K
#26667 First of all thanks for this great project! Is there any additional information available on the HTTP client? I had a look at the 'http_wifi_api_check_internet' function in cgi_wifi.c but it does only a GET. Following that as an example I wrote my own function to do a request. Mine is a POST request tho. It's going through, but I can't set the body. Can anyone tell me how I would have to set the request body?
User avatar
By Israel Lot
#31593 Thank's! Fixed them

clinkme wrote:The first is just a typo I think. The second leads to memory leaks on wifi scan.
Code: Select all279c284
<       cJSON_AddNumberToObject(root,"ap_count",wifi_get_opmode());
---
>             cJSON_AddNumberToObject(root,"ap_count",wifi_status.scan_result.ap_count);
302c307
<          return HTTPD_CGI_DONE;
---
>          return HTTPD_CGI_MORE;