|
请问有大佬知道为啥官方示例程序中的Blinker_ESP32_CAM程序为啥会出现编译错误。库文件都是最新的,但是还是有问题。
In file included from D:\Documents\Arduino\libraries\Blinker\src/BlinkerESPMQTT.h:16:0,
from D:\Documents\Arduino\libraries\Blinker\src/Blinker.h:43,
from C:\Users\Administrator\Desktop\Blinker_ESP32_CAM\Blinker_ESP32_CAM.ino:49:
D:\Documents\Arduino\libraries\Blinker\src/Adapters/BlinkerMQTT.h: In member function 'virtual char* BlinkerMQTT::token()':
D:\Documents\Arduino\libraries\Blinker\src/Adapters/BlinkerMQTT.h:141:50: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
char * token() { if (!isMQTTinit) return ""; else return MQTT_KEY_MQTT; }
^
In file included from D:\Documents\Arduino\libraries\Blinker\src/BlinkerESPMQTT.h:16:0,
from D:\Documents\Arduino\libraries\Blinker\src/Blinker.h:43,
from C:\Users\Administrator\Desktop\Blinker_ESP32_CAM\Blinker_ESP32_CAM.ino:49:
D:\Documents\Arduino\libraries\Blinker\src/Adapters/BlinkerMQTT.h: In member function 'virtual char* BlinkerMQTT::lastRead()':
D:\Documents\Arduino\libraries\Blinker\src/Adapters/BlinkerMQTT.h:954:17: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
else return "";
^
|
-
|