今天把代码上传到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 编译时出错。
我去查了一下有人说是编译器的问题,求大佬帮我解决一下 谢谢
|