“存在BUG
git commit -m “存在BUG
This commit is contained in:
@ -61,13 +61,18 @@ String getnetData()
|
||||
int times_try = 0;
|
||||
while (http->headerAvailable())
|
||||
{
|
||||
if(times_try > 1000)
|
||||
|
||||
if(times_try > 100)
|
||||
{
|
||||
write_log(log_path,100,"http->headerAvailable failed ...");
|
||||
return "-1";
|
||||
}
|
||||
write_log(log_path,100,"http->readHeaderName");
|
||||
String headerName = http->readHeaderName();
|
||||
write_log(log_path,100,"http->readHeaderValue");
|
||||
String headerValue = http->readHeaderValue();
|
||||
write_log(log_path,100,String(times_try)+"http->headerName "+headerName);
|
||||
write_log(log_path,100,String(times_try)+"http->headerValue "+headerValue);
|
||||
// SerialMon.println("Date: " + headerName + " : " + headerValue);
|
||||
vTaskDelay(100);
|
||||
times_try++;
|
||||
@ -242,7 +247,6 @@ void Reuploaddata() //重新上传数据
|
||||
ReuploadData("/down", "/weather/php/SpectralDataUp.php");
|
||||
ReuploadData("/up", "/weather/php/SpectralDataUp.php");
|
||||
ReuploadData("/other", "/weather/php/WindsensorUp.php", "application/json");
|
||||
|
||||
}
|
||||
|
||||
String Datenow="";
|
||||
|
Reference in New Issue
Block a user