为开发板 WiFiduino 编译时出错。-Arduino中文社区 - Powered by Discuz!

Arduino中文社区

 找回密码
 立即注册

QQ登录

只需一步,快速开始

查看: 1417|回复: 1

[过期] 为开发板 WiFiduino 编译时出错。

[复制链接]
发表于 2020-9-24 16:54 | 显示全部楼层 |阅读模式
今天把代码上传到wifiduino上的时候出现了"为开发板Wifiduino编译时出错",不知道是为什么,下面是报错的信息

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


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


                 from C:\Users\86178\Desktop\Blinker\Blinker.ino:4:


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


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


     else return "";


                 ^


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


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


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


                 from C:\Users\86178\Desktop\Blinker\Blinker.ino:4:


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


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


                 else return "false";


                             ^


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


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


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


                 from C:\Users\86178\Desktop\Blinker\Blinker.ino:4:


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


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


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


                                                                                      ^


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


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


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


                                                                                   ^


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


C:\Users\86178\Documents\Arduino\libraries\blinker-library-master\src/Blinker/BlinkerProtocol.h:245: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\86178\Documents\Arduino\libraries\blinker-library-master\src/BlinkerESPMQTT.h:11:0,


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


                 from C:\Users\86178\Desktop\Blinker\Blinker.ino:4:


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


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


         BlinkerWidgets_string _BUILTIN_SWITCH = BlinkerWidgets_string(BLINKER_CMD_BUILTIN_SWITCH);


                                                                                                 ^


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


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


         else return "";


                     ^


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


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


         else return "false";


                     ^


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


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


     else return "";


                 ^


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


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


         else return "";


                     ^


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


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


     else return "";


                 ^


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


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


     else return "";


                 ^


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


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


     else return "";


                 ^


C:\Users\86178\Desktop\Blinker\Blinker.ino: At global scope:


C:\Users\86178\Desktop\Blinker\Blinker.ino:22:30: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]


BlinkerButton Button1("Close");


                              ^


C:\Users\86178\Desktop\Blinker\Blinker.ino:23:29: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]


BlinkerNumber Number1("Fall");


                             ^


C:\Users\86178\Desktop\Blinker\Blinker.ino:24:37: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]


BlinkerNumber Number2("Incontinence");


                                     ^


C:\Users\86178\Desktop\Blinker\Blinker.ino: In function 'void getAngularAcceleration()':


C:\Users\86178\Desktop\Blinker\Blinker.ino:137:30: warning: ISO C++ says that these are ambiguous, even though the worst conversion for the first is better than the worst conversion for the second: [enabled by default]


   Wire.requestFrom(MPU,6,true);


                              ^


In file included from C:\Users\86178\Desktop\Blinker\Blinker.ino:3:0:


C:\Users\86178\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.6.3\libraries\Wire/Wire.h:71:13: note: candidate 1: uint8_t TwoWire::requestFrom(int, int, int)


     uint8_t requestFrom(int, int, int);


             ^


C:\Users\86178\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.6.3\libraries\Wire/Wire.h:65:12: note: candidate 2: size_t TwoWire::requestFrom(uint8_t, size_t, bool)


     size_t requestFrom(uint8_t address, size_t size, bool sendStop);


            ^


C:\Users\86178\Desktop\Blinker\Blinker.ino:137:30: warning: ISO C++ says that these are ambiguous, even though the worst conversion for the first is better than the worst conversion for the second: [enabled by default]


   Wire.requestFrom(MPU,6,true);


                              ^


In file included from C:\Users\86178\Desktop\Blinker\Blinker.ino:3:0:


C:\Users\86178\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.6.3\libraries\Wire/Wire.h:71:13: note: candidate 1: uint8_t TwoWire::requestFrom(int, int, int)


     uint8_t requestFrom(int, int, int);


             ^


C:\Users\86178\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.6.3\libraries\Wire/Wire.h:65:12: note: candidate 2: size_t TwoWire::requestFrom(uint8_t, size_t, bool)


     size_t requestFrom(uint8_t address, size_t size, bool sendStop);


            ^


In file included from C:\Users\86178\Documents\Arduino\libraries\DHTLib\dht.h:18:0,


                 from C:\Users\86178\Documents\Arduino\libraries\DHTLib\dht.cpp:30:


C:\Users\86178\Documents\Arduino\libraries\DHTLib\dht.cpp: In member function 'int dht::_readSensor(uint8_t, uint8_t)':


C:\Users\86178\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.6.3\cores\esp8266/Arduino.h:214:118: error: cannot convert 'volatile uint32_t* {aka volatile unsigned int*}' to 'volatile uint8_t* {aka volatile unsigned char*}' in initialization


#define portInputRegister(port)     (((port)==_PORT_GPIO16)?((volatile uint32_t*) &GP16I)(volatile uint32_t*) &GPI))


                                                                                                                      ^


C:\Users\86178\Documents\Arduino\libraries\DHTLib\dht.cpp:116:29: note: in expansion of macro 'portInputRegister'


     volatile uint8_t *PIR = portInputRegister(port);


                             ^


exit status 1
为开发板 WiFiduino 编译时出错。




我去查了一下有人说是编译器的问题,求大佬帮我解决一下 谢谢

2020-09-24.png
发表于 2022-2-27 02:01 | 显示全部楼层
该问题和blinker无关,请自行学习处理
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

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

GMT+8, 2024-11-28 10:35 , Processed in 0.202519 second(s), 18 queries .

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

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