Esp32-cam编译出错
请问有大佬知道为啥官方示例程序中的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 "";
^
把你现在lib和package删了,然后按照点灯文档安装lib和package即可 coloz 发表于 2022-4-7 20:49
把你现在lib和package删了,然后按照点灯文档安装lib和package即可
谢谢,成功了 请问楼主怎么解决的啊,我是在点灯的github下载的库文件,但也出现这种问题了 coloz 发表于 2022-4-7 20:49
把你现在lib和package删了,然后按照点灯文档安装lib和package即可
是在github里下载库么?能给个下载链接或者教程么,谢谢
页:
[1]