用arduino ide烧写esp8266-1模块blinker固件出现问题-Arduino中文社区 - Powered by Discuz!

Arduino中文社区

 找回密码
 立即注册

QQ登录

只需一步,快速开始

查看: 4321|回复: 7

[已解答] 用arduino ide烧写esp8266 -1模块blinker固件出现问题

[复制链接]
发表于 2019-5-7 20:25 | 显示全部楼层 |阅读模式
本帖最后由 qq2829 于 2019-5-7 20:28 编辑

硬件接线方式参考:
arduino1.67,1.6.10,1.8.9均出现编译错误:

Arduino:1.6.7 (Windows 10), 开发板:"Generic ESP8266 Module, Serial, 80 MHz, 40MHz, QIO, 115200, 512K (64K SPIFFS), ck"

构建选项已变更,全部重新构建
In file included from F:\Arduino1.67\libraries\blinker-library-master\src/Functions/BlinkerOTA.h:22:0,

                 from F:\Arduino1.67\libraries\blinker-library-master\src/Blinker/BlinkerApi.h:41,

                 from F:\Arduino1.67\libraries\blinker-library-master\src/BlinkerESPMQTTAT.h:11,

                 from F:\Arduino1.67\libraries\blinker-library-master\src/Blinker.h:172,

                 from F:\鐢ㄦ埛鐩綍\Documents\Arduino\libraries\Blinker\examples\Blinker_AT_Firmware\AT_Firmware_WiFi\AT_Firmware_WiFi.ino:40:

F:\Arduino1.67\libraries\blinker-library-master\src/Functions/BlinkerUpdater.h:12:0: warning: "UPDATE_ERROR_OK" redefined [enabled by default]

#define UPDATE_ERROR_OK                 (0)

^

In file included from C:\Users\Administrator\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.0.0\cores\esp8266/Arduino.h:249:0,

                 from sketch\AT_Firmware_WiFi.ino.cpp:1:

C:\Users\Administrator\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.0.0\cores\esp8266/Updater.h:8:0: note: this is the location of the previous definition

#define UPDATE_ERROR_OK     0

^

In file included from F:\Arduino1.67\libraries\blinker-library-master\src/Functions/BlinkerOTA.h:22:0,

                 from F:\Arduino1.67\libraries\blinker-library-master\src/Blinker/BlinkerApi.h:41,

                 from F:\Arduino1.67\libraries\blinker-library-master\src/BlinkerESPMQTTAT.h:11,

                 from F:\Arduino1.67\libraries\blinker-library-master\src/Blinker.h:172,

                 from F:\鐢ㄦ埛鐩綍\Documents\Arduino\libraries\Blinker\examples\Blinker_AT_Firmware\AT_Firmware_WiFi\AT_Firmware_WiFi.ino:40:

F:\Arduino1.67\libraries\blinker-library-master\src/Functions/BlinkerUpdater.h:13:0: warning: "UPDATE_ERROR_WRITE" redefined [enabled by default]

#define UPDATE_ERROR_WRITE              (1)

^

In file included from C:\Users\Administrator\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.0.0\cores\esp8266/Arduino.h:249:0,

                 from sketch\AT_Firmware_WiFi.ino.cpp:1:

C:\Users\Administrator\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.0.0\cores\esp8266/Updater.h:9:0: note: this is the location of the previous definition

#define UPDATE_ERROR_WRITE  1

^

In file included from F:\Arduino1.67\libraries\blinker-library-master\src/Functions/BlinkerOTA.h:22:0,

                 from F:\Arduino1.67\libraries\blinker-library-master\src/Blinker/BlinkerApi.h:41,

                 from F:\Arduino1.67\libraries\blinker-library-master\src/BlinkerESPMQTTAT.h:11,

                 from F:\Arduino1.67\libraries\blinker-library-master\src/Blinker.h:172,

                 from F:\鐢ㄦ埛鐩綍\Documents\Arduino\libraries\Blinker\examples\Blinker_AT_Firmware\AT_Firmware_WiFi\AT_Firmware_WiFi.ino:40:

F:\Arduino1.67\libraries\blinker-library-master\src/Functions/BlinkerUpdater.h:14:0: warning: "UPDATE_ERROR_ERASE" redefined [enabled by default]

#define UPDATE_ERROR_ERASE              (2)

^

In file included from C:\Users\Administrator\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.0.0\cores\esp8266/Arduino.h:249:0,

                 from sketch\AT_Firmware_WiFi.ino.cpp:1:

C:\Users\Administrator\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.0.0\cores\esp8266/Updater.h:10:0: note: this is the location of the previous definition

#define UPDATE_ERROR_ERASE  2

^

In file included from F:\Arduino1.67\libraries\blinker-library-master\src/Functions/BlinkerOTA.h:22:0,

                 from F:\Arduino1.67\libraries\blinker-library-master\src/Blinker/BlinkerApi.h:41,

                 from F:\Arduino1.67\libraries\blinker-library-master\src/BlinkerESPMQTTAT.h:11,

                 from F:\Arduino1.67\libraries\blinker-library-master\src/Blinker.h:172,

                 from F:\鐢ㄦ埛鐩綍\Documents\Arduino\libraries\Blinker\examples\Blinker_AT_Firmware\AT_Firmware_WiFi\AT_Firmware_WiFi.ino:40:

F:\Arduino1.67\libraries\blinker-library-master\src/Functions/BlinkerUpdater.h:16:0: warning: "UPDATE_ERROR_SPACE" redefined [enabled by default]

#define UPDATE_ERROR_SPACE              (4)

^

In file included from C:\Users\Administrator\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.0.0\cores\esp8266/Arduino.h:249:0,

                 from sketch\AT_Firmware_WiFi.ino.cpp:1:

C:\Users\Administrator\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.0.0\cores\esp8266/Updater.h:11:0: note: this is the location of the previous definition

#define UPDATE_ERROR_SPACE  3

^

In file included from F:\Arduino1.67\libraries\blinker-library-master\src/Functions/BlinkerOTA.h:22:0,

                 from F:\Arduino1.67\libraries\blinker-library-master\src/Blinker/BlinkerApi.h:41,

                 from F:\Arduino1.67\libraries\blinker-library-master\src/BlinkerESPMQTTAT.h:11,

                 from F:\Arduino1.67\libraries\blinker-library-master\src/Blinker.h:172,

                 from F:\鐢ㄦ埛鐩綍\Documents\Arduino\libraries\Blinker\examples\Blinker_AT_Firmware\AT_Firmware_WiFi\AT_Firmware_WiFi.ino:40:

F:\Arduino1.67\libraries\blinker-library-master\src/Functions/BlinkerUpdater.h:17:0: warning: "UPDATE_ERROR_SIZE" redefined [enabled by default]

#define UPDATE_ERROR_SIZE               (5)

^

In file included from C:\Users\Administrator\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.0.0\cores\esp8266/Arduino.h:249:0,

                 from sketch\AT_Firmware_WiFi.ino.cpp:1:

C:\Users\Administrator\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.0.0\cores\esp8266/Updater.h:12:0: note: this is the location of the previous definition

#define UPDATE_ERROR_SIZE   4

^

In file included from F:\Arduino1.67\libraries\blinker-library-master\src/Functions/BlinkerOTA.h:22:0,

                 from F:\Arduino1.67\libraries\blinker-library-master\src/Blinker/BlinkerApi.h:41,

                 from F:\Arduino1.67\libraries\blinker-library-master\src/BlinkerESPMQTTAT.h:11,

                 from F:\Arduino1.67\libraries\blinker-library-master\src/Blinker.h:172,

                 from F:\鐢ㄦ埛鐩綍\Documents\Arduino\libraries\Blinker\examples\Blinker_AT_Firmware\AT_Firmware_WiFi\AT_Firmware_WiFi.ino:40:

F:\Arduino1.67\libraries\blinker-library-master\src/Functions/BlinkerUpdater.h:18:0: warning: "UPDATE_ERROR_STREAM" redefined [enabled by default]

#define UPDATE_ERROR_STREAM             (6)

^

In file included from C:\Users\Administrator\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.0.0\cores\esp8266/Arduino.h:249:0,

                 from sketch\AT_Firmware_WiFi.ino.cpp:1:

C:\Users\Administrator\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.0.0\cores\esp8266/Updater.h:13:0: note: this is the location of the previous definition

#define UPDATE_ERROR_STREAM 5

^

In file included from F:\Arduino1.67\libraries\blinker-library-master\src/Functions/BlinkerOTA.h:22:0,

                 from F:\Arduino1.67\libraries\blinker-library-master\src/Blinker/BlinkerApi.h:41,

                 from F:\Arduino1.67\libraries\blinker-library-master\src/BlinkerESPMQTTAT.h:11,

                 from F:\Arduino1.67\libraries\blinker-library-master\src/Blinker.h:172,

                 from F:\鐢ㄦ埛鐩綍\Documents\Arduino\libraries\Blinker\examples\Blinker_AT_Firmware\AT_Firmware_WiFi\AT_Firmware_WiFi.ino:40:

F:\Arduino1.67\libraries\blinker-library-master\src/Functions/BlinkerUpdater.h:19:0: warning: "UPDATE_ERROR_MD5" redefined [enabled by default]

#define UPDATE_ERROR_MD5                (7)

^

In file included from C:\Users\Administrator\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.0.0\cores\esp8266/Arduino.h:249:0,

                 from sketch\AT_Firmware_WiFi.ino.cpp:1:

C:\Users\Administrator\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.0.0\cores\esp8266/Updater.h:14:0: note: this is the location of the previous definition

#define UPDATE_ERROR_MD5    6

^

In file included from F:\Arduino1.67\libraries\blinker-library-master\src/Adapters/BlinkerMQTTAT.h:31:0,

                 from F:\Arduino1.67\libraries\blinker-library-master\src/BlinkerESPMQTTAT.h:10,

                 from F:\Arduino1.67\libraries\blinker-library-master\src/Blinker.h:172,

                 from F:\鐢ㄦ埛鐩綍\Documents\Arduino\libraries\Blinker\examples\Blinker_AT_Firmware\AT_Firmware_WiFi\AT_Firmware_WiFi.ino:40:

F:\Arduino1.67\libraries\blinker-library-master\src/Blinker/BlinkerMQTTATBase.h:73:1: error: 'SerialConfig' does not name a type

SerialConfig ss_cfg;

^

F:\Arduino1.67\libraries\blinker-library-master\src/Blinker/BlinkerMQTTATBase.h:79:1: error: 'SerialConfig' does not name a type

SerialConfig serConfig()

^

In file included from F:\Arduino1.67\libraries\blinker-library-master\src/BlinkerESPMQTTAT.h:10:0,

                 from F:\Arduino1.67\libraries\blinker-library-master\src/Blinker.h:172,

                 from F:\鐢ㄦ埛鐩綍\Documents\Arduino\libraries\Blinker\examples\Blinker_AT_Firmware\AT_Firmware_WiFi\AT_Firmware_WiFi.ino:40:

F:\Arduino1.67\libraries\blinker-library-master\src/Adapters/BlinkerMQTTAT.h:199:5: error: 'BearSSL' does not name a type

     BearSSL::WiFiClientSecure   client_mqtt;

     ^

F:\Arduino1.67\libraries\blinker-library-master\src/Adapters/BlinkerMQTTAT.h: In member function 'virtual int BlinkerMQTTAT::connect()':

F:\Arduino1.67\libraries\blinker-library-master\src/Adapters/BlinkerMQTTAT.h:446:9: error: 'client_mqtt' was not declared in this scope

         client_mqtt.setInsecure();

         ^

F:\Arduino1.67\libraries\blinker-library-master\src/Adapters/BlinkerMQTTAT.h: In member function 'virtual char* BlinkerMQTTAT::lastRead()':

F:\Arduino1.67\libraries\blinker-library-master\src/Adapters/BlinkerMQTTAT.h:814:12: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]

     return "";

            ^

F:\Arduino1.67\libraries\blinker-library-master\src/Adapters/BlinkerMQTTAT.h: In member function 'int BlinkerMQTTAT::connectServer()':

F:\Arduino1.67\libraries\blinker-library-master\src/Adapters/BlinkerMQTTAT.h:1886:5: error: 'client_mqtt' was not declared in this scope

     client_mqtt.stop();

     ^

F:\Arduino1.67\libraries\blinker-library-master\src/Adapters/BlinkerMQTTAT.h:1888:21: error: 'BearSSL' was not declared in this scope

     std::unique_ptr<BearSSL::WiFiClientSecure>client_s(new BearSSL::WiFiClientSecure);

                     ^

F:\Arduino1.67\libraries\blinker-library-master\src/Adapters/BlinkerMQTTAT.h:1888:46: error: template argument 1 is invalid

     std::unique_ptr<BearSSL::WiFiClientSecure>client_s(new BearSSL::WiFiClientSecure);

                                              ^

F:\Arduino1.67\libraries\blinker-library-master\src/Adapters/BlinkerMQTTAT.h:1888:46: error: template argument 2 is invalid

F:\Arduino1.67\libraries\blinker-library-master\src/Adapters/BlinkerMQTTAT.h:1888:55: error: invalid type in declaration before '(' token

     std::unique_ptr<BearSSL::WiFiClientSecure>client_s(new BearSSL::WiFiClientSecure);

                                                       ^

F:\Arduino1.67\libraries\blinker-library-master\src/Adapters/BlinkerMQTTAT.h:1888:60: error: expected type-specifier before 'BearSSL'

     std::unique_ptr<BearSSL::WiFiClientSecure>client_s(new BearSSL::WiFiClientSecure);

                                                            ^

F:\Arduino1.67\libraries\blinker-library-master\src/Adapters/BlinkerMQTTAT.h:1891:13: error: base operand of '->' is not a pointer

     client_s->setInsecure();

             ^

F:\Arduino1.67\libraries\blinker-library-master\src/Adapters/BlinkerMQTTAT.h:1927:21: error: invalid type argument of unary '*' (have 'int')

     if (http.begin(*client_s, url_iot)) {  // HTTPS

                     ^

F:\Arduino1.67\libraries\blinker-library-master\src/Adapters/BlinkerMQTTAT.h:1940:29: error: 'HTTP_CODE_OK' was not declared in this scope

             if (httpCode == HTTP_CODE_OK || httpCode == HTTP_CODE_MOVED_PERMANENTLY) {

                             ^

F:\Arduino1.67\libraries\blinker-library-master\src/Adapters/BlinkerMQTTAT.h:1940:57: error: 'HTTP_CODE_MOVED_PERMANENTLY' was not declared in this scope

             if (httpCode == HTTP_CODE_OK || httpCode == HTTP_CODE_MOVED_PERMANENTLY) {

                                                         ^

F:\Arduino1.67\libraries\blinker-library-master\src/Adapters/BlinkerMQTTAT.h:1945:74: error: 'class HTTPClient' has no member named 'errorToString'

             BLINKER_LOG(BLINKER_F("[HTTP] GET... failed, error: "), http.errorToString(httpCode).c_str());

                                                                          ^

In file included from F:\Arduino1.67\libraries\blinker-library-master\src/BlinkerESPMQTTAT.h:10:0,

                 from F:\Arduino1.67\libraries\blinker-library-master\src/Blinker.h:172,

                 from F:\鐢ㄦ埛鐩綍\Documents\Arduino\libraries\Blinker\examples\Blinker_AT_Firmware\AT_Firmware_WiFi\AT_Firmware_WiFi.ino:40:

F:\Arduino1.67\libraries\blinker-library-master\src/Adapters/BlinkerMQTTAT.h: In member function 'void BlinkerMQTTAT::mDNSInit()':

F:\Arduino1.67\libraries\blinker-library-master\src/Adapters/BlinkerMQTTAT.h:2310:10: error: 'class MDNSResponder' has no member named 'addServiceTxt'

     MDNS.addServiceTxt(BLINKER_MDNS_SERVICE_BLINKER, "tcp", "deviceName", String(DEVICE_NAME_MQTT_AT));

          ^

In file included from F:\Arduino1.67\libraries\blinker-library-master\src/Blinker/BlinkerApi.h:41:0,

                 from F:\Arduino1.67\libraries\blinker-library-master\src/BlinkerESPMQTTAT.h:11,

                 from F:\Arduino1.67\libraries\blinker-library-master\src/Blinker.h:172,

                 from F:\鐢ㄦ埛鐩綍\Documents\Arduino\libraries\Blinker\examples\Blinker_AT_Firmware\AT_Firmware_WiFi\AT_Firmware_WiFi.ino:40:

F:\Arduino1.67\libraries\blinker-library-master\src/Functions/BlinkerOTA.h: At global scope:

F:\Arduino1.67\libraries\blinker-library-master\src/Functions/BlinkerOTA.h:13:12: error: 'BearSSL' does not name a type

     extern BearSSL::WiFiClientSecure client_mqtt;

            ^

In file included from F:\Arduino1.67\libraries\blinker-library-master\src/Blinker/BlinkerApi.h:41:0,

                 from F:\Arduino1.67\libraries\blinker-library-master\src/BlinkerESPMQTTAT.h:11,

                 from F:\Arduino1.67\libraries\blinker-library-master\src/Blinker.h:172,

                 from F:\鐢ㄦ埛鐩綍\Documents\Arduino\libraries\Blinker\examples\Blinker_AT_Firmware\AT_Firmware_WiFi\AT_Firmware_WiFi.ino:40:

F:\Arduino1.67\libraries\blinker-library-master\src/Functions/BlinkerOTA.h: In member function 'bool BlinkerOTA::update()':

F:\Arduino1.67\libraries\blinker-library-master\src/Functions/BlinkerOTA.h:108:5: error: 'BearSSL' has not been declared

     BearSSL::WiFiClientSecure client_s;

     ^

F:\Arduino1.67\libraries\blinker-library-master\src/Functions/BlinkerOTA.h:108:31: error: expected ';' before 'client_s'

     BearSSL::WiFiClientSecure client_s;

                               ^

F:\Arduino1.67\libraries\blinker-library-master\src/Functions/BlinkerOTA.h:112:5: error: 'client_mqtt' was not declared in this scope

     client_mqtt.stop();

     ^

F:\Arduino1.67\libraries\blinker-library-master\src/Functions/BlinkerOTA.h:115:17: error: 'client_s' was not declared in this scope

     bool mfln = client_s.probeMaxFragmentLength(ota_host, ota_port, 1024);

                 ^

In file included from F:\Arduino1.67\libraries\blinker-library-master\src/Blinker/BlinkerApi.h:69:0,

                 from F:\Arduino1.67\libraries\blinker-library-master\src/BlinkerESPMQTTAT.h:11,

                 from F:\Arduino1.67\libraries\blinker-library-master\src/Blinker.h:172,

                 from F:\鐢ㄦ埛鐩綍\Documents\Arduino\libraries\Blinker\examples\Blinker_AT_Firmware\AT_Firmware_WiFi\AT_Firmware_WiFi.ino:40:

F:\Arduino1.67\libraries\blinker-library-master\src/Blinker/BlinkerApiBase.h: In member function 'char* BlinkerBridge_key::getName()':

F:\Arduino1.67\libraries\blinker-library-master\src/Blinker/BlinkerApiBase.h:163:29: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]

                 else return "false";

                             ^

In file included from F:\Arduino1.67\libraries\blinker-library-master\src/Blinker/BlinkerApi.h:70:0,

                 from F:\Arduino1.67\libraries\blinker-library-master\src/BlinkerESPMQTTAT.h:11,

                 from F:\Arduino1.67\libraries\blinker-library-master\src/Blinker.h:172,

                 from F:\鐢ㄦ埛鐩綍\Documents\Arduino\libraries\Blinker\examples\Blinker_AT_Firmware\AT_Firmware_WiFi\AT_Firmware_WiFi.ino:40:

F:\Arduino1.67\libraries\blinker-library-master\src/Blinker/BlinkerProtocol.h: In member function 'char* BlinkerProtocol::deviceName()':

F:\Arduino1.67\libraries\blinker-library-master\src/Blinker/BlinkerProtocol.h:78:86: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]

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

                                                                                      ^

F:\Arduino1.67\libraries\blinker-library-master\src/Blinker/BlinkerProtocol.h: In member function 'char* BlinkerProtocol::authKey()':

F:\Arduino1.67\libraries\blinker-library-master\src/Blinker/BlinkerProtocol.h:79:83: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]

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

                                                                                   ^

F:\Arduino1.67\libraries\blinker-library-master\src/Blinker/BlinkerProtocol.h: In member function 'char* BlinkerProtocol::dataParse()':

F:\Arduino1.67\libraries\blinker-library-master\src/Blinker/BlinkerProtocol.h:171:86: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]

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

                                                                                      ^

In file included from F:\Arduino1.67\libraries\blinker-library-master\src/BlinkerESPMQTTAT.h:11:0,

                 from F:\Arduino1.67\libraries\blinker-library-master\src/Blinker.h:172,

                 from F:\鐢ㄦ埛鐩綍\Documents\Arduino\libraries\Blinker\examples\Blinker_AT_Firmware\AT_Firmware_WiFi\AT_Firmware_WiFi.ino:40:

F:\Arduino1.67\libraries\blinker-library-master\src/Blinker/BlinkerApi.h: At global scope:

F:\Arduino1.67\libraries\blinker-library-master\src/Blinker/BlinkerApi.h:529:97: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]

         BlinkerWidgets_string _BUILTIN_SWITCH = BlinkerWidgets_string(BLINKER_CMD_BUILTIN_SWITCH);

                                                                                                 ^

F:\Arduino1.67\libraries\blinker-library-master\src/Blinker/BlinkerApi.h: In member function 'void BlinkerApi::run()':

F:\Arduino1.67\libraries\blinker-library-master\src/Blinker/BlinkerApi.h:2210:22: error: 'class ESP8266WiFiClass' has no member named 'reconnect'

                 WiFi.reconnect();

                      ^

In file included from F:\Arduino1.67\libraries\blinker-library-master\src/BlinkerESPMQTTAT.h:11:0,

                 from F:\Arduino1.67\libraries\blinker-library-master\src/Blinker.h:172,

                 from F:\鐢ㄦ埛鐩綍\Documents\Arduino\libraries\Blinker\examples\Blinker_AT_Firmware\AT_Firmware_WiFi\AT_Firmware_WiFi.ino:40:

F:\Arduino1.67\libraries\blinker-library-master\src/Blinker/BlinkerApi.h: In member function 'char* BlinkerApi::bridgeKey(uint8_t)':

F:\Arduino1.67\libraries\blinker-library-master\src/Blinker/BlinkerApi.h:4138:21: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]

         else return "";

                     ^

F:\Arduino1.67\libraries\blinker-library-master\src/Blinker/BlinkerApi.h: In member function 'char* BlinkerApi::bridgeName(uint8_t)':

F:\Arduino1.67\libraries\blinker-library-master\src/Blinker/BlinkerApi.h:4145:21: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]

         else return "false";

                     ^

F:\Arduino1.67\libraries\blinker-library-master\src/Blinker/BlinkerApi.h: In member function 'char* BlinkerApi::widgetName_str(uint8_t)':

F:\Arduino1.67\libraries\blinker-library-master\src/Blinker/BlinkerApi.h:4585:17: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]

     else return "";

                 ^

F:\Arduino1.67\libraries\blinker-library-master\src/Blinker/BlinkerApi.h: In member function 'char* BlinkerApi::widgetName_rgb(uint8_t)':

F:\Arduino1.67\libraries\blinker-library-master\src/Blinker/BlinkerApi.h:4599:17: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]

     else return "";

                 ^

F:\Arduino1.67\libraries\blinker-library-master\src/Blinker/BlinkerApi.h: In member function 'char* BlinkerApi::widgetName_int(uint8_t)':

F:\Arduino1.67\libraries\blinker-library-master\src/Blinker/BlinkerApi.h:4605:17: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]

     else return "";

                 ^

F:\Arduino1.67\libraries\blinker-library-master\src/Blinker/BlinkerApi.h: In member function 'String BlinkerApi::blinkerServer(uint8_t, const String&, bool)':

F:\Arduino1.67\libraries\blinker-library-master\src/Blinker/BlinkerApi.h:7636:20: error: 'BearSSL' does not name a type

             extern BearSSL::WiFiClientSecure client_mqtt;

                    ^

F:\Arduino1.67\libraries\blinker-library-master\src/Blinker/BlinkerApi.h:7637:13: error: 'client_mqtt' was not declared in this scope

             client_mqtt.stop();

             ^

F:\Arduino1.67\libraries\blinker-library-master\src/Blinker/BlinkerApi.h:7639:29: error: 'BearSSL' was not declared in this scope

             std::unique_ptr<BearSSL::WiFiClientSecure>client_s(new BearSSL::WiFiClientSecure);

                             ^

F:\Arduino1.67\libraries\blinker-library-master\src/Blinker/BlinkerApi.h:7639:54: error: template argument 1 is invalid

             std::unique_ptr<BearSSL::WiFiClientSecure>client_s(new BearSSL::WiFiClientSecure);

                                                      ^

F:\Arduino1.67\libraries\blinker-library-master\src/Blinker/BlinkerApi.h:7639:54: error: template argument 2 is invalid

F:\Arduino1.67\libraries\blinker-library-master\src/Blinker/BlinkerApi.h:7639:63: error: invalid type in declaration before '(' token

             std::unique_ptr<BearSSL::WiFiClientSecure>client_s(new BearSSL::WiFiClientSecure);

                                                               ^

F:\Arduino1.67\libraries\blinker-library-master\src/Blinker/BlinkerApi.h:7639:68: error: expected type-specifier before 'BearSSL'

             std::unique_ptr<BearSSL::WiFiClientSecure>client_s(new BearSSL::WiFiClientSecure);

                                                                    ^

F:\Arduino1.67\libraries\blinker-library-master\src/Blinker/BlinkerApi.h:7642:21: error: base operand of '->' is not a pointer

             client_s->setInsecure();

                     ^

F:\Arduino1.67\libraries\blinker-library-master\src/Blinker/BlinkerApi.h:7666:37: error: invalid type argument of unary '*' (have 'int')

                         http.begin(*client_s, url_iot);

                                     ^

F:\Arduino1.67\libraries\blinker-library-master\src/Blinker/BlinkerApi.h:7679:37: error: invalid type argument of unary '*' (have 'int')

                         http.begin(*client_s, url_iot);

                                     ^

F:\Arduino1.67\libraries\blinker-library-master\src/Blinker/BlinkerApi.h:7693:37: error: invalid type argument of unary '*' (have 'int')

                         http.begin(*client_s, url_iot);

                                     ^

F:\Arduino1.67\libraries\blinker-library-master\src/Blinker/BlinkerApi.h:7708:37: error: invalid type argument of unary '*' (have 'int')

                         http.begin(*client_s, url_iot);

                                     ^

F:\Arduino1.67\libraries\blinker-library-master\src/Blinker/BlinkerApi.h:7721:37: error: invalid type argument of unary '*' (have 'int')

                         http.begin(*client_s, url_iot);

                                     ^

F:\Arduino1.67\libraries\blinker-library-master\src/Blinker/BlinkerApi.h:7734:37: error: invalid type argument of unary '*' (have 'int')

                         http.begin(*client_s, url_iot);

                                     ^

F:\Arduino1.67\libraries\blinker-library-master\src/Blinker/BlinkerApi.h:7748:41: error: invalid type argument of unary '*' (have 'int')

                             http.begin(*client_s, url_iot);

                                         ^

F:\Arduino1.67\libraries\blinker-library-master\src/Blinker/BlinkerApi.h:7762:41: error: invalid type argument of unary '*' (have 'int')

                             http.begin(*client_s, url_iot);

                                         ^

F:\Arduino1.67\libraries\blinker-library-master\src/Blinker/BlinkerApi.h:7775:41: error: invalid type argument of unary '*' (have 'int')

                             http.begin(*client_s, url_iot);

                                         ^

F:\Arduino1.67\libraries\blinker-library-master\src/Blinker/BlinkerApi.h:7787:41: error: invalid type argument of unary '*' (have 'int')

                             http.begin(*client_s, url_iot);

                                         ^

F:\Arduino1.67\libraries\blinker-library-master\src/Blinker/BlinkerApi.h:7801:41: error: invalid type argument of unary '*' (have 'int')

                             http.begin(*client_s, url_iot);

                                         ^

F:\Arduino1.67\libraries\blinker-library-master\src/Blinker/BlinkerApi.h:7814:41: error: invalid type argument of unary '*' (have 'int')

                             http.begin(*client_s, url_iot);

                                         ^

F:\Arduino1.67\libraries\blinker-library-master\src/Blinker/BlinkerApi.h:7827:41: error: invalid type argument of unary '*' (have 'int')

                             http.begin(*client_s, url_iot);

                                         ^

F:\Arduino1.67\libraries\blinker-library-master\src/Blinker/BlinkerApi.h:7840:41: error: invalid type argument of unary '*' (have 'int')

                             http.begin(*client_s, url_iot);

                                         ^

F:\Arduino1.67\libraries\blinker-library-master\src/Blinker/BlinkerApi.h:7852:41: error: invalid type argument of unary '*' (have 'int')

                             http.begin(*client_s, url_iot);

                                         ^

F:\Arduino1.67\libraries\blinker-library-master\src/Blinker/BlinkerApi.h:7866:41: error: invalid type argument of unary '*' (have 'int')

                             http.begin(*client_s, url_iot);

                                         ^

F:\Arduino1.67\libraries\blinker-library-master\src/Blinker/BlinkerApi.h:7894:33: error: 'HTTP_CODE_OK' was not declared in this scope

                 if (httpCode == HTTP_CODE_OK) {

                                 ^

F:\Arduino1.67\libraries\blinker-library-master\src/Blinker/BlinkerApi.h:7985:79: error: 'class HTTPClient' has no member named 'errorToString'

                 BLINKER_LOG_ALL(BLINKER_F("[HTTP] ... failed, error: "), http.errorToString(httpCode).c_str());

                                                                               ^

F:\Arduino1.67\libraries\blinker-library-master\src/Blinker/BlinkerApi.h: In member function 'void BlinkerApi::parseATdata()':

F:\Arduino1.67\libraries\blinker-library-master\src/Blinker/BlinkerApi.h:8461:21: error: 'ss_cfg' was not declared in this scope

                     ss_cfg = serConfig();

                     ^

F:\Arduino1.67\libraries\blinker-library-master\src/Blinker/BlinkerApi.h:8461:40: error: 'serConfig' was not declared in this scope

                     ss_cfg = serConfig();

                                        ^

F:\Arduino1.67\libraries\blinker-library-master\src/Blinker/BlinkerApi.h:8526:21: error: 'ss_cfg' was not declared in this scope

                     ss_cfg = serConfig();

                     ^

F:\Arduino1.67\libraries\blinker-library-master\src/Blinker/BlinkerApi.h:8526:40: error: 'serConfig' was not declared in this scope

                     ss_cfg = serConfig();

                                        ^

In file included from F:\Arduino1.67\libraries\blinker-library-master\src/Blinker.h:172:0,

                 from F:\鐢ㄦ埛鐩綍\Documents\Arduino\libraries\Blinker\examples\Blinker_AT_Firmware\AT_Firmware_WiFi\AT_Firmware_WiFi.ino:40:

F:\Arduino1.67\libraries\blinker-library-master\src/BlinkerESPMQTTAT.h: In member function 'void BlinkerESPMQTTAT::begin()':

F:\Arduino1.67\libraries\blinker-library-master\src/BlinkerESPMQTTAT.h:28:13: error: 'ss_cfg' was not declared in this scope

             ss_cfg = serConfig();

             ^

F:\Arduino1.67\libraries\blinker-library-master\src/BlinkerESPMQTTAT.h:28:32: error: 'serConfig' was not declared in this scope

             ss_cfg = serConfig();

                                ^

exit status 1
编译有误。





 楼主| 发表于 2019-5-7 20:27 | 显示全部楼层
本帖最后由 qq2829 于 2019-5-7 20:29 编辑

急请高手解答!
发表于 2019-5-7 21:02 | 显示全部楼层
希望能认真阅读文档,版本要求都有写

Arduino IDE 1.6.12或更新版本
esp8266 package 2.5.0
 楼主| 发表于 2019-5-7 21:13 | 显示全部楼层
奈何col 发表于 2019-5-7 21:02
希望能认真阅读文档,版本要求都有写

Arduino IDE 1.6.12或更新版本

更新之后,出现错误:
Arduino:1.8.9 (Windows 10), 开发板:"Generic ESP8266 Module, 80 MHz, Flash, Disabled, ck, 26 MHz, 40MHz, QIO (fast), 512K (no SPIFFS), 2, v2 Lower Memory, Disabled, None, Only Sketch, 115200"

c:/users/administrator/appdata/local/arduino15/packages/esp8266/tools/xtensa-lx106-elf-gcc/2.5.0-3-20ed2b9/bin/../lib/gcc/xtensa-lx106-elf/4.8.2/../../../../xtensa-lx106-elf/bin/ld.exe: C:\Users\ADMINI~1\AppData\Local\Temp\arduino_build_620614/AT_Firmware_WiFi.ino.elf section `.irom0.text' will not fit in region `irom0_0_seg'

collect2.exe: error: ld returned 1 exit status

"EEPROM.h" 对应多个库
已使用: C:\Users\Administrator\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.5.0-beta3\libraries\EEPROM
未使用:F:\arduino-1.8.9\libraries\EEPROM
exit status 1
为开发板 Generic ESP8266 Module 编译时出错。

点评

你选的512K (no SPIFFS),工具里设置flash size 选大点就行了  详情 回复 发表于 2019-5-7 21:22
发表于 2019-5-7 21:22 | 显示全部楼层
qq2829 发表于 2019-5-7 21:13
更新之后,出现错误:
Arduino:1.8.9 (Windows 10), 开发板:"Generic ESP8266 Module, 80 MHz, Flash, D ...

你选的512K (no SPIFFS),工具里设置flash size 选大点就行了
 楼主| 发表于 2019-5-8 11:23 | 显示全部楼层
奈何col 发表于 2019-5-7 21:22
你选的512K (no SPIFFS),工具里设置flash size 选大点就行了

flash size改到1M (144k SPIFFS),上传成功,谢谢奈何
发表于 2019-5-8 13:39 | 显示全部楼层
刚好问题相似,学习了
发表于 2020-2-8 14:09 | 显示全部楼层
接线方式图片没有了,请问是怎么接的?是用的ESP8266-01模块嘛?
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

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

GMT+8, 2024-11-28 06:25 , Processed in 0.200591 second(s), 20 queries .

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

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