例程编译有警告,库文件已更新,大神们帮帮忙-Arduino中文社区 - Powered by Discuz! Archiver

sbt147 发表于 2019-11-19 13:15

例程编译有警告,库文件已更新,大神们帮帮忙

本帖最后由 sbt147 于 2019-11-21 13:31 编辑


In file included from C:\Users\hp1\Documents\Arduino\libraries\blinker-library-master\src/BlinkerESPMQTT.h:10:0,

               from C:\Users\hp1\Documents\Arduino\libraries\blinker-library-master\src/Blinker.h:36,

               from C:\Users\hp1\Desktop\新建文件夹\Blinker\Hello_WiFi\Hello_WiFi.ino:4:

C:\Users\hp1\Documents\Arduino\libraries\blinker-library-master\src/Adapters/BlinkerMQTT.h: In member function 'virtual char* BlinkerMQTT::lastRead()':

C:\Users\hp1\Documents\Arduino\libraries\blinker-library-master\src/Adapters/BlinkerMQTT.h:683:17: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]

   else return "";

               ^

In file included from C:\Users\hp1\Documents\Arduino\libraries\blinker-library-master\src/Blinker/BlinkerApi.h:82:0,

               from C:\Users\hp1\Documents\Arduino\libraries\blinker-library-master\src/BlinkerESPMQTT.h:11,

               from C:\Users\hp1\Documents\Arduino\libraries\blinker-library-master\src/Blinker.h:36,

               from C:\Users\hp1\Desktop\新建文件夹\Blinker\Hello_WiFi\Hello_WiFi.ino:4:

C:\Users\hp1\Documents\Arduino\libraries\blinker-library-master\src/Blinker/BlinkerApiBase.h: In member function 'char* BlinkerBridge_key::getName()':

C:\Users\hp1\Documents\Arduino\libraries\blinker-library-master\src/Blinker/BlinkerApiBase.h:194:29: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]

               else return "false";

                           ^

In file included from C:\Users\hp1\Documents\Arduino\libraries\blinker-library-master\src/Blinker/BlinkerApi.h:83:0,

               from C:\Users\hp1\Documents\Arduino\libraries\blinker-library-master\src/BlinkerESPMQTT.h:11,

               from C:\Users\hp1\Documents\Arduino\libraries\blinker-library-master\src/Blinker.h:36,

               from C:\Users\hp1\Desktop\新建文件夹\Blinker\Hello_WiFi\Hello_WiFi.ino:4:

C:\Users\hp1\Documents\Arduino\libraries\blinker-library-master\src/Blinker/BlinkerProtocol.h: In member function 'char* BlinkerProtocol::deviceName()':

C:\Users\hp1\Documents\Arduino\libraries\blinker-library-master\src/Blinker/BlinkerProtocol.h:97:86: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]

             char * deviceName() { if (isInit) return conn->deviceName(); else return ""; }

                                                                                    ^

C:\Users\hp1\Documents\Arduino\libraries\blinker-library-master\src/Blinker/BlinkerProtocol.h: In member function 'char* BlinkerProtocol::authKey()':

C:\Users\hp1\Documents\Arduino\libraries\blinker-library-master\src/Blinker/BlinkerProtocol.h:98:83: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]

             char * authKey()    { if (isInit) return conn->authKey(); else return "";}

                                                                                 ^

C:\Users\hp1\Documents\Arduino\libraries\blinker-library-master\src/Blinker/BlinkerProtocol.h: In member function 'char* BlinkerProtocol::dataParse()':

C:\Users\hp1\Documents\Arduino\libraries\blinker-library-master\src/Blinker/BlinkerProtocol.h:234:86: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]

         char* dataParse()       { if (canParse) return conn->lastRead(); else return ""; }

                                                                                    ^

In file included from C:\Users\hp1\Documents\Arduino\libraries\blinker-library-master\src/BlinkerESPMQTT.h:11:0,

               from C:\Users\hp1\Documents\Arduino\libraries\blinker-library-master\src/Blinker.h:36,

               from C:\Users\hp1\Desktop\新建文件夹\Blinker\Hello_WiFi\Hello_WiFi.ino:4:

C:\Users\hp1\Documents\Arduino\libraries\blinker-library-master\src/Blinker/BlinkerApi.h: At global scope:

C:\Users\hp1\Documents\Arduino\libraries\blinker-library-master\src/Blinker/BlinkerApi.h:775:97: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]

         BlinkerWidgets_string _BUILTIN_SWITCH = BlinkerWidgets_string(BLINKER_CMD_BUILTIN_SWITCH);

                                                                                                 ^

C:\Users\hp1\Documents\Arduino\libraries\blinker-library-master\src/Blinker/BlinkerApi.h: In member function 'char* BlinkerApi::bridgeKey(uint8_t)':

C:\Users\hp1\Documents\Arduino\libraries\blinker-library-master\src/Blinker/BlinkerApi.h:6362:21: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]

         else return "";

                     ^

C:\Users\hp1\Documents\Arduino\libraries\blinker-library-master\src/Blinker/BlinkerApi.h: In member function 'char* BlinkerApi::bridgeName(uint8_t)':

C:\Users\hp1\Documents\Arduino\libraries\blinker-library-master\src/Blinker/BlinkerApi.h:6369:21: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]

         else return "false";

                     ^

C:\Users\hp1\Documents\Arduino\libraries\blinker-library-master\src/Blinker/BlinkerApi.h: In member function 'char* BlinkerApi::widgetName_str(uint8_t)':

C:\Users\hp1\Documents\Arduino\libraries\blinker-library-master\src/Blinker/BlinkerApi.h:6994:17: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]

   else return "";

               ^

C:\Users\hp1\Documents\Arduino\libraries\blinker-library-master\src/Blinker/BlinkerApi.h: In member function 'char* BlinkerApi::widgetName_rgb(uint8_t)':

C:\Users\hp1\Documents\Arduino\libraries\blinker-library-master\src/Blinker/BlinkerApi.h:7008:17: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]

   else return "";

               ^

C:\Users\hp1\Documents\Arduino\libraries\blinker-library-master\src/Blinker/BlinkerApi.h: In member function 'char* BlinkerApi::widgetName_int(uint8_t)':

C:\Users\hp1\Documents\Arduino\libraries\blinker-library-master\src/Blinker/BlinkerApi.h:7014:17: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]

   else return "";

               ^

C:\Users\hp1\Documents\Arduino\libraries\blinker-library-master\src/Blinker/BlinkerApi.h: In member function 'char* BlinkerApi::widgetName_tab(uint8_t)':

C:\Users\hp1\Documents\Arduino\libraries\blinker-library-master\src/Blinker/BlinkerApi.h:7020:17: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]

   else return "";

               ^

C:\Users\hp1\Desktop\新建文件夹\Blinker\Hello_WiFi\Hello_WiFi.ino: At global scope:

C:\Users\hp1\Desktop\新建文件夹\Blinker\Hello_WiFi\Hello_WiFi.ino:12:32: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]

C:\Users\hp1\Desktop\新建文件夹\Blinker\Hello_WiFi\Hello_WiFi.ino:13:32: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]

C:\Users\hp1\Documents\Arduino\libraries\blinker-library-master\src\modules\WebSockets\WebSocketsClient.cpp: In member function 'void WebSocketsClient::loop()':

C:\Users\hp1\Documents\Arduino\libraries\blinker-library-master\src\modules\WebSockets\WebSocketsClient.cpp:174:87: warning: 'bool BearSSL::WiFiClientSecure::setCACert(const uint8_t*, size_t)' is deprecated (declared at C:\Users\hp1\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.5.0\libraries\ESP8266WiFi\src/WiFiClientSecureBearSSL.h:133): This is deprecated AxTLS API, check https://github.com/esp8266/Arduino/blob/master/libraries/ESP8266WiFi/src/WiFiClientSecure.h#L25-L99 [-Wdeprecated-declarations]

               _client.ssl->setCACert((const uint8_t *)_CA_cert, strlen(_CA_cert) + 1);

                                                                                       ^

C:\Users\hp1\Documents\Arduino\libraries\blinker-library-master\src\modules\WebSockets\WebSocketsClient.cpp: In member function 'void WebSocketsClient::connectedCb()':

C:\Users\hp1\Documents\Arduino\libraries\blinker-library-master\src\modules\WebSockets\WebSocketsClient.cpp:761:68: warning: 'bool BearSSL::WiFiClientSecure::verify(const char*, const char*)' is deprecated (declared at C:\Users\hp1\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.5.0\libraries\ESP8266WiFi\src/WiFiClientSecureBearSSL.h:173): This is deprecated AxTLS API, check https://github.com/esp8266/Arduino/blob/master/libraries/ESP8266WiFi/src/WiFiClientSecure.h#L25-L99 [-Wdeprecated-declarations]

         if(!_client.ssl->verify(_fingerprint.c_str(), _host.c_str())) {

                                                                  ^

项目使用了 540652 字节,占用了 (51%) 程序存储空间。最大为 1044464 字节。
全局变量使用了38420字节,(46%)的动态内存,余留43500字节局部变量。最大为81920字节。


页: [1]
查看完整版本: 例程编译有警告,库文件已更新,大神们帮帮忙