关于LED Marquee Scroller Wemos D1 Mini ESP8266-Arduino中文社区 - Powered by Discuz!

Arduino中文社区

 找回密码
 立即注册

QQ登录

只需一步,快速开始

查看: 862|回复: 0

关于LED Marquee Scroller Wemos D1 Mini ESP8266

[复制链接]
发表于 2022-3-20 17:22 | 显示全部楼层 |阅读模式
iShot2022-03-20 17.04.56.jpg
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)
==========================================================

请问这个报错应该要怎样处理?
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

小黑屋|Archiver|手机版|Arduino中文社区

GMT+8, 2024-11-28 00:31 , Processed in 0.085118 second(s), 18 queries .

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

快速回复 返回顶部 返回列表