|
Arduino:1.8.19 (Mac OS X), 开发板:"LOLIN(WEMOS) D1 R2 & mini, 80 MHz, Flash, Disabled (new aborts on oom), Disabled, All SSL ciphers (most compatible), 32KB cache + 32KB IRAM (balanced), Use pgm_read macros for IRAM/PROGMEM, 4MB (FS:2MB OTA:~1019KB), v2 Lower Memory, Disabled, None, Only Sketch, 921600"
In file included from /Users/mbp/Library/Arduino15/packages/esp8266/tools/xtensa-lx106-elf-gcc/3.0.4-gcc10.3-1757bed/xtensa-lx106-elf/include/assert.h:10,
from /Users/mbp/Library/Arduino15/packages/esp8266/tools/xtensa-lx106-elf-gcc/3.0.4-gcc10.3-1757bed/xtensa-lx106-elf/include/sys/reent.h:503,
from /Users/mbp/Library/Arduino15/packages/esp8266/tools/xtensa-lx106-elf-gcc/3.0.4-gcc10.3-1757bed/xtensa-lx106-elf/include/stdlib.h:18,
from /Users/mbp/Library/Arduino15/packages/esp8266/tools/xtensa-lx106-elf-gcc/3.0.4-gcc10.3-1757bed/xtensa-lx106-elf/include/c++/10.3.0/cstdlib:75,
from /Users/mbp/Library/Arduino15/packages/esp8266/tools/xtensa-lx106-elf-gcc/3.0.4-gcc10.3-1757bed/xtensa-lx106-elf/include/c++/10.3.0/stdlib.h:36,
from /Users/mbp/Library/Arduino15/packages/esp8266/hardware/esp8266/3.0.2/cores/esp8266/Arduino.h:27,
from sketch/marquee.ino.cpp:1:
/Users/mbp/Documents/Arduino/libraries/WiFiManager/WiFiManager.h:25:24: error: 'const char HTTP_HEAD []' redeclared as different kind of entity
25 | const char HTTP_HEAD[] PROGMEM = "<!DOCTYPE html><html lang=\"en\"><head><meta name=\"viewport\" content=\"width=device-width, initial-scale=1, user-scalable=no\"/><title>{v}</title>";
| ^~~~~~~
In file included from /Users/mbp/Documents/开发工具/marquee-scroller-master/marquee/Settings.h:39,
from /Users/mbp/Documents/开发工具/marquee-scroller-master/marquee/marquee.ino:28:
/Users/mbp/Library/Arduino15/packages/esp8266/hardware/esp8266/3.0.2/libraries/ESP8266WebServer/src/ESP8266WebServer.h:47:39: note: previous declaration 'HTTPMethod HTTP_HEAD'
47 | enum HTTPMethod { HTTP_ANY, HTTP_GET, HTTP_HEAD, HTTP_POST, HTTP_PUT, HTTP_PATCH, HTTP_DELETE, HTTP_OPTIONS };
| ^~~~~~~~~
/Users/mbp/Documents/开发工具/marquee-scroller-master/marquee/NewsApiClient.cpp: In member function 'void NewsApiClient::updateNews()':
NewsApiClient.cpp:49:13: error: call to 'HTTPClient::begin' declared with attribute error: obsolete API, use ::begin(WiFiClient, url)
49 | http.begin(apiGetData);
| ~~~~~~~~~~^~~~~~~~~~~~
/Users/mbp/Documents/开发工具/marquee-scroller-master/marquee/BitcoinApiClient.cpp: In member function 'void BitcoinApiClient::updateBitcoinData(String)':
BitcoinApiClient.cpp:44:13: error: call to 'HTTPClient::begin' declared with attribute error: obsolete API, use ::begin(WiFiClient, url)
44 | http.begin(apiGetData);
| ~~~~~~~~~~^~~~~~~~~~~~
/Users/mbp/Documents/开发工具/marquee-scroller-master/marquee/PiHoleClient.cpp: In member function 'void PiHoleClient::getGraphData(String, int)':
PiHoleClient.cpp:155:13: error: call to 'HTTPClient::begin' declared with attribute error: obsolete API, use ::begin(WiFiClient, url)
155 | http.begin(apiGetData);
| ~~~~~~~~~~^~~~~~~~~~~~
/Users/mbp/Documents/开发工具/marquee-scroller-master/marquee/PiHoleClient.cpp: In member function 'void PiHoleClient::getTopClientsBlocked(String, int, String)':
PiHoleClient.cpp:105:13: error: call to 'HTTPClient::begin' declared with attribute error: obsolete API, use ::begin(WiFiClient, url)
105 | http.begin(apiGetData);// get the result
| ~~~~~~~~~~^~~~~~~~~~~~
/Users/mbp/Documents/开发工具/marquee-scroller-master/marquee/PiHoleClient.cpp: In member function 'void PiHoleClient::getPiHoleData(String, int)':
PiHoleClient.cpp:38:13: error: call to 'HTTPClient::begin' declared with attribute error: obsolete API, use ::begin(WiFiClient, url)
38 | http.begin(apiGetData);// get the result
| ~~~~~~~~~~^~~~~~~~~~~~
exit status 1
call to 'HTTPClient::begin' declared with attribute error: obsolete API, use ::begin(WiFiClient, url)
==========================================================
请问这个报错应该要怎样处理?
|
|