|
报错的是这个语句: Blinker.begin(ssid, pswd)
下面是错误报告
Arduino:1.8.9 (Windows 7), 开发板:"NodeMCU 1.0 (ESP-12E Module), 80 MHz, Flash, Legacy (new can return nullptr), All SSL ciphers (most compatible), 4MB (FS:2MB OTA:~1019KB), 2, v2 Lower Memory, Disabled, None, Only Sketch, 115200"
C:\Users\newchangogo\Desktop\sketch_oct07c\sketch_oct07c.ino: In function 'void setup()':
sketch_oct07c:61:29: error: no matching function for call to 'BlinkerESPMQTT::begin(char [17], char [14])'
Blinker.begin(ssid, pswd);
^
C:\Users\newchangogo\Desktop\sketch_oct07c\sketch_oct07c.ino:61:29: note: candidate is:
In file included from C:\Users\newchangogo\Documents\Arduino\libraries\Blinker\src/Blinker.h:36:0,
from C:\Users\newchangogo\Desktop\sketch_oct07c\sketch_oct07c.ino:8:
C:\Users\newchangogo\Documents\Arduino\libraries\Blinker\src/BlinkerESPMQTT.h:100:14: note: void BlinkerESPMQTT::begin(const char*, const char*, const char*)
void begin( const char* _auth,
^
C:\Users\newchangogo\Documents\Arduino\libraries\Blinker\src/BlinkerESPMQTT.h:100:14: note: candidate expects 3 arguments, 2 provided
C:\Users\newchangogo\Desktop\sketch_oct07c\sketch_oct07c.ino: In function 'void loop()':
sketch_oct07c:119:17: error: 'class BlinkerESPMQTT' has no member named 'available'
if (Blinker.available()) {
^
sketch_oct07c:120:56: error: 'class BlinkerESPMQTT' has no member named 'readString'
BLINKER_LOG2("Blinker.readString(): ", Blinker.readString());
^
sketch_oct07c:120:68: error: 'BLINKER_LOG2' was not declared in this scope
BLINKER_LOG2("Blinker.readString(): ", Blinker.readString());
^
"Blinker.h" 对应多个库
已使用: C:\Users\newchangogo\Documents\Arduino\libraries\Blinker
未使用:C:\Arduino编程\libraries\blinker
exit status 1
no matching function for call to 'BlinkerESPMQTT::begin(char [17], char [14])'
在文件 -> 首选项开启
“编译过程中显示详细输出”选项
这份报告会包含更多信息。
请大神帮忙
|
|