ESP-01S 编译失败问题与连不上WiFi-Arduino中文社区 - Powered by Discuz! Archiver

m1onster 发表于 2021-12-23 01:23

ESP-01S 编译失败问题与连不上WiFi

1.esp8266 开发板哪里升级后编译一直失败 不知道怎么解决   blinker库已经下载再导入很多次了 还是不行
https://www.arduino.cn/forum.php?mod=image&aid=79218&size=300x300&key=1307e398efe98851&nocache=yes&type=fixnone

错误
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), 2MB (FS:1MB OTA:~512KB), 2, nonos-sdk 2.2.1+100 (190703), v2 Lower Memory, Serial, None, Only Sketch, 115200"

In file included from F:\Learning materials\传感器\温狗的作业\燃气报警\arduino_esp01_blinker0504\arduino_esp01_blinker0504.ino:1:

C:\Users\admin\Documents\Arduino\libraries\Blinker\src/Blinker.h:215:6: error: #error Please set a mode BLINKER_BLE/BLINKER_WIFI/BLINKER_MQTT ! Please check your mode setting.

215 |   #error Please set a mode BLINKER_BLE/BLINKER_WIFI/BLINKER_MQTT ! Please check your mode setting.

      |      ^~~~~

"Blinker.h" 对应多个库

已使用: C:\Users\admin\Documents\Arduino\libraries\Blinker

未使用:C:\Users\admin\Documents\Arduino\libraries\blinker-library-0.3.80210927

未使用:C:\Users\admin\Documents\Arduino\libraries\blinker-library-master

"SoftwareSerial.h" 对应多个库

已使用: C:\Users\admin\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\3.0.1\libraries\SoftwareSerial

未使用:C:\Users\admin\Documents\Arduino\libraries\EspSoftwareSerial

exit status 1

为开发板 Generic ESP8266 Module 编译时出错。



在文件 -> 首选项开启
“编译过程中显示详细输出”选项
这份报告会包含更多信息。

2.我的esp-01s 一直连接不上WiFi   串口显示一直找不到 我的wifi名和密码都没有错呀。

https://www.arduino.cn/forum.php?mod=image&aid=79220&size=300x300&key=958e3673908349c8&nocache=yes&type=fixnone

https://www.arduino.cn/forum.php?mod=image&aid=79219&size=300x300&key=8e6aaaa46066a651&nocache=yes&type=fixnone




m1onster 发表于 2021-12-23 02:00

全部都没有错感觉      11111

m1onster 发表于 2021-12-23 02:23

#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, "\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, "\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 编译时出错。



在文件 -> 首选项开启
“编译过程中显示详细输出”选项
这份报告会包含更多信息。

m1onster 发表于 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, "\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, "\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 编译时出错。



在文件 -> 首选项开启
“编译过程中显示详细输出”选项
这份报告会包含更多信息。

zjzane 发表于 2021-12-23 08:52

退回早期版本吧,我在1.8.12下好的程序到.13版本下就通不过了,现在都不升级了

点灯官方 发表于 2021-12-23 08:58

"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


你安装了多个blinker lib,需要将前两个删除

点灯官方 发表于 2021-12-23 08:59

zjzane 发表于 2021-12-23 08:52
退回早期版本吧,我在1.8.12下好的程序到.13版本下就通不过了,现在都不升级了 ...

对于一般开发者,我们建议保持最新版本

m1onster 发表于 2021-12-23 13:01

zjzane 发表于 2021-12-23 08:52
退回早期版本吧,我在1.8.12下好的程序到.13版本下就通不过了,现在都不升级了 ...

退版本全部都解决了 谢谢
页: [1]
查看完整版本: ESP-01S 编译失败问题与连不上WiFi