|
楼主 |
发表于 2021-12-23 02:45
|
显示全部楼层
#define BLINKER_WIFI 也放在开头也还是编译失败
好奇怪
Arduino:1.8.18 (Windows 10), 开发板:"Generic ESP8266 Module, 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, dtr (aka nodemcu), 40 MHz, 40MHz, QIO (fast), 1MB (FS:512KB OTA:~246KB), 2, nonos-sdk 2.2.1+100 (190703), v2 Lower Memory, Serial, None, Only Sketch, 115200"
In file included from C:\Users\admin\Documents\Arduino\libraries\Blinker\src/BlinkerESPMQTT.h:10,
from C:\Users\admin\Documents\Arduino\libraries\Blinker\src/Blinker.h:36,
from F:\Learning materials\传感器\温狗的作业\燃气报警\新建文件夹\arduino_esp01_blinker0504\arduino_esp01_blinker0504.ino:3:
C:\Users\admin\Documents\Arduino\libraries\Blinker\src/Adapters/BlinkerMQTT.h: In member function 'virtual char* BlinkerMQTT::lastRead()':
C:\Users\admin\Documents\Arduino\libraries\Blinker\src/Adapters/BlinkerMQTT.h:865:17: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
865 | else return "";
| ^~
In file included from C:\Users\admin\Documents\Arduino\libraries\Blinker\src/Blinker/BlinkerApi.h:83,
from C:\Users\admin\Documents\Arduino\libraries\Blinker\src/BlinkerESPMQTT.h:11,
from C:\Users\admin\Documents\Arduino\libraries\Blinker\src/Blinker.h:36,
from F:\Learning materials\传感器\温狗的作业\燃气报警\新建文件夹\arduino_esp01_blinker0504\arduino_esp01_blinker0504.ino:3:
C:\Users\admin\Documents\Arduino\libraries\Blinker\src/Blinker/BlinkerApiBase.h: In member function 'char* BlinkerBridge_key::getName()':
C:\Users\admin\Documents\Arduino\libraries\Blinker\src/Blinker/BlinkerApiBase.h:195:29: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
195 | else return "false";
| ^~~~~~~
In file included from C:\Users\admin\Documents\Arduino\libraries\Blinker\src/Blinker/BlinkerApi.h:84,
from C:\Users\admin\Documents\Arduino\libraries\Blinker\src/BlinkerESPMQTT.h:11,
from C:\Users\admin\Documents\Arduino\libraries\Blinker\src/Blinker.h:36,
from F:\Learning materials\传感器\温狗的作业\燃气报警\新建文件夹\arduino_esp01_blinker0504\arduino_esp01_blinker0504.ino:3:
C:\Users\admin\Documents\Arduino\libraries\Blinker\src/Blinker/BlinkerProtocol.h: In member function 'char* BlinkerProtocol::deviceName()':
C:\Users\admin\Documents\Arduino\libraries\Blinker\src/Blinker/BlinkerProtocol.h:100:86: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
100 | char * deviceName() { if (isInit) return conn->deviceName(); else return ""; }
| ^~
C:\Users\admin\Documents\Arduino\libraries\Blinker\src/Blinker/BlinkerProtocol.h: In member function 'char* BlinkerProtocol::authKey()':
C:\Users\admin\Documents\Arduino\libraries\Blinker\src/Blinker/BlinkerProtocol.h:101:83: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
101 | char * authKey() { if (isInit) return conn->authKey(); else return ""; }
| ^~
C:\Users\admin\Documents\Arduino\libraries\Blinker\src/Blinker/BlinkerProtocol.h: In member function 'char* BlinkerProtocol::dataParse()':
C:\Users\admin\Documents\Arduino\libraries\Blinker\src/Blinker/BlinkerProtocol.h:245:86: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
245 | char* dataParse() { if (canParse) return conn->lastRead(); else return ""; }
| ^~
In file included from C:\Users\admin\Documents\Arduino\libraries\Blinker\src/Adapters/BlinkerMQTT.h:31,
from C:\Users\admin\Documents\Arduino\libraries\Blinker\src/BlinkerESPMQTT.h:10,
from C:\Users\admin\Documents\Arduino\libraries\Blinker\src/Blinker.h:36,
from F:\Learning materials\传感器\温狗的作业\燃气报警\新建文件夹\arduino_esp01_blinker0504\arduino_esp01_blinker0504.ino:3:
C:\Users\admin\Documents\Arduino\libraries\Blinker\src/Blinker/BlinkerApi.h: At global scope:
c:\users\admin\documents\arduino\libraries\blinker\src\blinker\blinkerconfig.h:218:41: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
218 | #define BLINKER_CMD_BUILTIN_SWITCH "switch"
| ^~~~~~~~
C:\Users\admin\Documents\Arduino\libraries\Blinker\src/Blinker/BlinkerApi.h:791:71: note: in expansion of macro 'BLINKER_CMD_BUILTIN_SWITCH'
791 | BlinkerWidgets_string _BUILTIN_SWITCH = BlinkerWidgets_string(BLINKER_CMD_BUILTIN_SWITCH);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from C:\Users\admin\Documents\Arduino\libraries\Blinker\src/BlinkerESPMQTT.h:11,
from C:\Users\admin\Documents\Arduino\libraries\Blinker\src/Blinker.h:36,
from F:\Learning materials\传感器\温狗的作业\燃气报警\新建文件夹\arduino_esp01_blinker0504\arduino_esp01_blinker0504.ino:3:
C:\Users\admin\Documents\Arduino\libraries\Blinker\src/Blinker/BlinkerApi.h: In member function 'char* BlinkerApi::bridgeKey(uint8_t)':
C:\Users\admin\Documents\Arduino\libraries\Blinker\src/Blinker/BlinkerApi.h:7047:21: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
7047 | else return "";
| ^~
C:\Users\admin\Documents\Arduino\libraries\Blinker\src/Blinker/BlinkerApi.h: In member function 'char* BlinkerApi::bridgeName(uint8_t)':
C:\Users\admin\Documents\Arduino\libraries\Blinker\src/Blinker/BlinkerApi.h:7054:21: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
7054 | else return "false";
| ^~~~~~~
C:\Users\admin\Documents\Arduino\libraries\Blinker\src/Blinker/BlinkerApi.h: In member function 'char* BlinkerApi::widgetName_str(uint8_t)':
C:\Users\admin\Documents\Arduino\libraries\Blinker\src/Blinker/BlinkerApi.h:7680:17: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
7680 | else return "";
| ^~
C:\Users\admin\Documents\Arduino\libraries\Blinker\src/Blinker/BlinkerApi.h: In member function 'char* BlinkerApi::widgetName_joy(uint8_t)':
C:\Users\admin\Documents\Arduino\libraries\Blinker\src/Blinker/BlinkerApi.h:7687:21: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
7687 | else return "";
| ^~
C:\Users\admin\Documents\Arduino\libraries\Blinker\src/Blinker/BlinkerApi.h: In member function 'char* BlinkerApi::widgetName_rgb(uint8_t)':
C:\Users\admin\Documents\Arduino\libraries\Blinker\src/Blinker/BlinkerApi.h:7694:17: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
7694 | else return "";
| ^~
C:\Users\admin\Documents\Arduino\libraries\Blinker\src/Blinker/BlinkerApi.h: In member function 'char* BlinkerApi::widgetName_int(uint8_t)':
C:\Users\admin\Documents\Arduino\libraries\Blinker\src/Blinker/BlinkerApi.h:7700:17: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
7700 | else return "";
| ^~
C:\Users\admin\Documents\Arduino\libraries\Blinker\src/Blinker/BlinkerApi.h: In member function 'char* BlinkerApi::widgetName_tab(uint8_t)':
C:\Users\admin\Documents\Arduino\libraries\Blinker\src/Blinker/BlinkerApi.h:7706:17: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
7706 | else return "";
| ^~
F:\Learning materials\传感器\温狗的作业\燃气报警\新建文件夹\arduino_esp01_blinker0504\arduino_esp01_blinker0504.ino: At global scope:
F:\Learning materials\传感器\温狗的作业\燃气报警\新建文件夹\arduino_esp01_blinker0504\arduino_esp01_blinker0504.ino:11:20: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
F:\Learning materials\传感器\温狗的作业\燃气报警\新建文件夹\arduino_esp01_blinker0504\arduino_esp01_blinker0504.ino:12:18: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
F:\Learning materials\传感器\温狗的作业\燃气报警\新建文件夹\arduino_esp01_blinker0504\arduino_esp01_blinker0504.ino:13:19: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
F:\Learning materials\传感器\温狗的作业\燃气报警\新建文件夹\arduino_esp01_blinker0504\arduino_esp01_blinker0504.ino:14:21: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
F:\Learning materials\传感器\温狗的作业\燃气报警\新建文件夹\arduino_esp01_blinker0504\arduino_esp01_blinker0504.ino:15:23: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
F:\Learning materials\传感器\温狗的作业\燃气报警\新建文件夹\arduino_esp01_blinker0504\arduino_esp01_blinker0504.ino:16:23: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
F:\Learning materials\传感器\温狗的作业\燃气报警\新建文件夹\arduino_esp01_blinker0504\arduino_esp01_blinker0504.ino:17:23: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
F:\Learning materials\传感器\温狗的作业\燃气报警\新建文件夹\arduino_esp01_blinker0504\arduino_esp01_blinker0504.ino:18:23: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
F:\Learning materials\传感器\温狗的作业\燃气报警\新建文件夹\arduino_esp01_blinker0504\arduino_esp01_blinker0504.ino:19:19: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
F:\Learning materials\传感器\温狗的作业\燃气报警\新建文件夹\arduino_esp01_blinker0504\arduino_esp01_blinker0504.ino:20:19: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
F:\Learning materials\传感器\温狗的作业\燃气报警\新建文件夹\arduino_esp01_blinker0504\arduino_esp01_blinker0504.ino:21:19: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
F:\Learning materials\传感器\温狗的作业\燃气报警\新建文件夹\arduino_esp01_blinker0504\arduino_esp01_blinker0504.ino: In function 'void dataStorage()':
F:\Learning materials\传感器\温狗的作业\燃气报警\新建文件夹\arduino_esp01_blinker0504\arduino_esp01_blinker0504.ino:159:23: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
F:\Learning materials\传感器\温狗的作业\燃气报警\新建文件夹\arduino_esp01_blinker0504\arduino_esp01_blinker0504.ino:160:23: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
F:\Learning materials\传感器\温狗的作业\燃气报警\新建文件夹\arduino_esp01_blinker0504\arduino_esp01_blinker0504.ino:161:23: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
F:\Learning materials\传感器\温狗的作业\燃气报警\新建文件夹\arduino_esp01_blinker0504\arduino_esp01_blinker0504.ino:162:23: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
In file included from C:\Users\admin\Documents\Arduino\libraries\Blinker\src/Blinker/BlinkerApi.h:83,
from C:\Users\admin\Documents\Arduino\libraries\Blinker\src/BlinkerESPMQTT.h:11,
from C:\Users\admin\Documents\Arduino\libraries\Blinker\src/Blinker.h:36,
from F:\Learning materials\传感器\温狗的作业\燃气报警\新建文件夹\arduino_esp01_blinker0504\arduino_esp01_blinker0504.ino:3:
C:\Users\admin\Documents\Arduino\libraries\Blinker\src/Blinker/BlinkerApiBase.h: In constructor 'BlinkerData::BlinkerData()':
C:\Users\admin\Documents\Arduino\libraries\Blinker\src/Blinker/BlinkerApiBase.h:450:27: warning: 'void* memcpy(void*, const void*, size_t)' reading 10 bytes from a region of size 2 [-Wstringop-overflow=]
450 | memcpy(data[num], "\0", 10);
| ~~~~~~^~~~~~~~~~~~~~~~~~~~~
In member function 'void BlinkerData::flush()',
inlined from 'bool BlinkerApi::dataUpdate()' at C:\Users\admin\Documents\Arduino\libraries\Blinker\src/Blinker/BlinkerApi.h:6730:35:
C:\Users\admin\Documents\Arduino\libraries\Blinker\src/Blinker/BlinkerApiBase.h:596:27: warning: 'void* memcpy(void*, const void*, size_t)' reading 10 bytes from a region of size 2 [-Wstringop-overflow=]
596 | memcpy(data[num], "\0", 10);
| ~~~~~~^~~~~~~~~~~~~~~~~~~~~
C:\Users\admin\Documents\Arduino\libraries\Blinker\src\modules\WebSockets\WebSocketsClient.cpp: In member function 'void WebSocketsClient::loop()':
C:\Users\admin\Documents\Arduino\libraries\Blinker\src\modules\WebSockets\WebSocketsClient.cpp:174:30: error: 'class BearSSL::WiFiClientSecure' has no member named 'setCACert'
174 | _client.ssl->setCACert((const uint8_t *)_CA_cert, strlen(_CA_cert) + 1);
| ^~~~~~~~~
C:\Users\admin\Documents\Arduino\libraries\Blinker\src\modules\WebSockets\WebSocketsClient.cpp: In member function 'void WebSocketsClient::connectedCb()':
C:\Users\admin\Documents\Arduino\libraries\Blinker\src\modules\WebSockets\WebSocketsClient.cpp:761:26: error: 'class BearSSL::WiFiClientSecure' has no member named 'verify'
761 | if(!_client.ssl->verify(_fingerprint.c_str(), _host.c_str())) {
| ^~~~~~
"WiFiUdp.h" 对应多个库
已使用: C:\Users\admin\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\3.0.1\libraries\ESP8266WiFi
未使用:D:\Arduino\libraries\WiFi
"SoftwareSerial.h" 对应多个库
已使用: C:\Users\admin\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\3.0.1\libraries\SoftwareSerial
未使用:C:\Users\admin\Documents\Arduino\libraries\EspSoftwareSerial
"Blinker.h" 对应多个库
已使用: C:\Users\admin\Documents\Arduino\libraries\Blinker
未使用:C:\Users\admin\Documents\Arduino\libraries\blinker-library-master
未使用:C:\Users\admin\Documents\Arduino\libraries\blinker-library-0.3.80210927
exit status 1
为开发板 Generic ESP8266 Module 编译时出错。
在文件 -> 首选项开启
“编译过程中显示详细输出”选项
这份报告会包含更多信息。
|
|