8266编译不过如果可以解决发红包
C:\Users\xuansir\Documents\Arduino\sketch_jan07f\sketch_jan07f.ino: In function 'void button1_callback(const String&)':
sketch_jan07f:38:18: error: 'D3' was not declared in this scope
digitalWrite(D3, HIGH);
^
sketch_jan07f:43:18: error: 'D3' was not declared in this scope
digitalWrite(D3, LOW);
^
C:\Users\xuansir\Documents\Arduino\sketch_jan07f\sketch_jan07f.ino: In function 'void setup()':
sketch_jan07f:50:13: error: 'D3' was not declared in this scope
pinMode(D3, OUTPUT);
^
sketch_jan07f:54:29: error: no matching function for call to 'BlinkerESPMQTT::begin(char , char )'
Blinker.begin(ssid, pswd);
^
C:\Users\xuansir\Documents\Arduino\sketch_jan07f\sketch_jan07f.ino:54:29: note: candidates are:
In file included from C:\Users\xuansir\Documents\Arduino\libraries\Blinker\src/Blinker.h:149:0,
from C:\Users\xuansir\Documents\Arduino\sketch_jan07f\sketch_jan07f.ino:23:
C:\Users\xuansir\Documents\Arduino\libraries\Blinker\src/BlinkerESPMQTT.h:34:14: note: void BlinkerESPMQTT::begin(const char*)
void begin(const char* _auth)
^
C:\Users\xuansir\Documents\Arduino\libraries\Blinker\src/BlinkerESPMQTT.h:34:14: note: candidate expects 1 argument, 2 provided
C:\Users\xuansir\Documents\Arduino\libraries\Blinker\src/BlinkerESPMQTT.h:63:14: note: void BlinkerESPMQTT::begin(const char*, const char*, const char*)
void begin( const char* _auth,
^
C:\Users\xuansir\Documents\Arduino\libraries\Blinker\src/BlinkerESPMQTT.h:63:14: note: candidate expects 3 arguments, 2 provided
C:\Users\xuansir\Documents\Arduino\sketch_jan07f\sketch_jan07f.ino: In function 'void loop()':
sketch_jan07f:63:56: error: 'class BlinkerESPMQTT' has no member named 'readString'
BLINKER_LOG2("Blinker.readString(): ", Blinker.readString());
^
sketch_jan07f:63:68: error: 'BLINKER_LOG2' was not declared in this scope
BLINKER_LOG2("Blinker.readString(): ", Blinker.readString());
^
exit status 1
'D3' was not declared in this scope
C:\Users\xuansir\Documents\Arduino\sketch_jan07f\sketch_jan07f.ino: In function 'void button1_callback(const String&)':
sketch_jan07f:38:18: error: 'D3' was not declared in this scope
digitalWrite(D3, HIGH);
^
sketch_jan07f:43:18: error: 'D3' was not declared in this scope
digitalWrite(D3, LOW);
^
C:\Users\xuansir\Documents\Arduino\sketch_jan07f\sketch_jan07f.ino: In function 'void setup()':
sketch_jan07f:50:13: error: 'D3' was not declared in this scope
pinMode(D3, OUTPUT);
^
sketch_jan07f:54:29: error: no matching function for call to 'BlinkerESPMQTT::begin(char , char )'
Blinker.begin(ssid, pswd);
^
C:\Users\xuansir\Documents\Arduino\sketch_jan07f\sketch_jan07f.ino:54:29: note: candidates are:
In file included from C:\Users\xuansir\Documents\Arduino\libraries\Blinker\src/Blinker.h:149:0,
from C:\Users\xuansir\Documents\Arduino\sketch_jan07f\sketch_jan07f.ino:23:
C:\Users\xuansir\Documents\Arduino\libraries\Blinker\src/BlinkerESPMQTT.h:34:14: note: void BlinkerESPMQTT::begin(const char*)
void begin(const char* _auth)
^
C:\Users\xuansir\Documents\Arduino\libraries\Blinker\src/BlinkerESPMQTT.h:34:14: note: candidate expects 1 argument, 2 provided
C:\Users\xuansir\Documents\Arduino\libraries\Blinker\src/BlinkerESPMQTT.h:63:14: note: void BlinkerESPMQTT::begin(const char*, const char*, const char*)
void begin( const char* _auth,
^
C:\Users\xuansir\Documents\Arduino\libraries\Blinker\src/BlinkerESPMQTT.h:63:14: note: candidate expects 3 arguments, 2 provided
C:\Users\xuansir\Documents\Arduino\sketch_jan07f\sketch_jan07f.ino: In function 'void loop()':
sketch_jan07f:63:56: error: 'class BlinkerESPMQTT' has no member named 'readString'
BLINKER_LOG2("Blinker.readString(): ", Blinker.readString());
^
sketch_jan07f:63:68: error: 'BLINKER_LOG2' was not declared in this scope
BLINKER_LOG2("Blinker.readString(): ", Blinker.readString());
^
exit status 1
'D3' was not declared in this scope
你这个板子没有D3,或者你选的开发板没有D3,看看啥板子,上面印的啥,直接写上面印的数字即可 开发板可以看图
coloz 发表于 2019-1-7 19:44
你这个板子没有D3,或者你选的开发板没有D3,看看啥板子,上面印的啥,直接写上面印的数字即可 ...
这开发版有D3口 heysir 发表于 2019-1-7 19:54
这开发版有D3口
写得有不代表你ide选的板子定义的有 还没有解决吗? 怀疑你的编译板子选错了;参考我的:
肯定是没选板子类型的,选Generic ESP8266 Module 再编译就可以了。 D3,你应该填写0
页:
[1]