Closed Stylesoftware closed 4 years ago
Hi,
I managed to fix this error for my own code. Just add the following snippet to the top of "app_httpd.cpp":
static inline esp_err_t httpd_resp_sendstr(httpd_req_t *r, const char *str) {
return httpd_resp_send(r, str, (str == NULL) ? 0 : strlen(str));
}
The code is from https://github.com/espressif/esp-idf/blob/a7e8d87d3e5ccc9e5ffcd701a1bac587ba4f43ea/components/esp_http_server/include/esp_http_server.h#L1041 I guess it is dropped by espressif for some reason.
Good stuff, cheers
On Sun, Sep 1, 2019 at 10:32 PM the-programmer notifications@github.com wrote:
Hi,
I managed to fix this error for my own code. Just add the following snippet to the top of "app_httpd.cpp": static inline esp_err_t httpd_resp_sendstr(httpd_req_t r, const char str) { return httpd_resp_send(r, str, (str == NULL) ? 0 : strlen(str)); } The code is from https://github.com/espressif/esp-idf/blob/a7e8d87d3e5ccc9e5ffcd701a1bac587ba4f43ea/components/esp_http_server/include/esp_http_server.h#L1041 I guess it is dropped by espressif for some reason.
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or mute the thread.
already fixed @the-programmer Thank you for your answer
Tried on esp 1.01 and 1.02. Installed the required libraries. Tried older and newer Arduino IDE. Selected board: ESP Wrover (3MB Not OTA)
Used: C:\Users\xx\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.2\libraries\WiFi Used: C:\Users\xx\Documents\Arduino\libraries\esp8266-oled-ssd1306
Error: