我想发布大小约为15Kb的图像文件,将基于esp8266的原型发布到非sql数据库。我可以发布大小小于1Kb的json文件,但http post失败的大小超过1460字节。
HTTPClient http;
if( http.begin(myurl) ){
delay(1000);
char *auth = authString;
http.setAuthorization(auth);
http.addHeader("Content-Type","application/json", false, true);
int err = http.POST(largedata);
Serial1.print("HTTP Post reutrns : ");Serial1.println(err);
}