Changing HTTP_UPLOAD_BUFLEN
Posted: Wed Oct 17, 2018 5:17 pm
Hello,
I would like to change the HTTP_UPLOAD_BUFLEN from the ESP8266WebServer.
In the Library ESP8266WebServer.h is the following code:
#ifndef HTTP_UPLOAD_BUFLEN
#define HTTP_UPLOAD_BUFLEN 2048
#endif
So i thougth i can change it by writing
#define HTTP_UPLOAD_BUFLEN 4096
in my sketch before including the library. But it does not work.
I tried then to put the #define statement as first line in the Sketch, then after the #include of the library but nothing works. The value ist always 2048. If i change the value from 2018 to 4096 directly in the library it works of course.
So what am i doing wrong ?
I would like to change the HTTP_UPLOAD_BUFLEN from the ESP8266WebServer.
In the Library ESP8266WebServer.h is the following code:
#ifndef HTTP_UPLOAD_BUFLEN
#define HTTP_UPLOAD_BUFLEN 2048
#endif
So i thougth i can change it by writing
#define HTTP_UPLOAD_BUFLEN 4096
in my sketch before including the library. But it does not work.
I tried then to put the #define statement as first line in the Sketch, then after the #include of the library but nothing works. The value ist always 2048. If i change the value from 2018 to 4096 directly in the library it works of course.
So what am i doing wrong ?