查看: 411|回复: 7

8266编译不过如果可以解决发红包

[复制链接]

该用户从未签到

发表于 2019-1-7 19:31 | 显示全部楼层 |阅读模式










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 [11], char [11])'


     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 [11], char [11])'


     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

  • TA的每日心情
    擦汗
    2018-9-19 20:22
  • 签到天数: 47 天

    [LV.5]常住居民I

    发表于 2019-1-7 19:44 | 显示全部楼层
    你这个板子没有D3,或者你选的开发板没有D3,看看啥板子,上面印的啥,直接写上面印的数字即可
    如果你觉得以上内容帮到了你,你可以打赏支持作者

    该用户从未签到

     楼主| 发表于 2019-1-7 19:53 | 显示全部楼层
    开发板可以看图

    微信图片_20190107195200.jpg

    该用户从未签到

     楼主| 发表于 2019-1-7 19:54 | 显示全部楼层
    coloz 发表于 2019-1-7 19:44
    你这个板子没有D3,或者你选的开发板没有D3,看看啥板子,上面印的啥,直接写上面印的数字即可 ...

    这开发版有D3口

    该用户从未签到

    发表于 2019-1-7 20:20 | 显示全部楼层
    heysir 发表于 2019-1-7 19:54
    这开发版有D3口

    写得有不代表你ide选的板子定义的有
  • TA的每日心情
    开心
    2019-1-8 09:03
  • 签到天数: 21 天

    [LV.4]偶尔看看III

    发表于 2019-1-8 09:02 | 显示全部楼层
    还没有解决吗?    怀疑你的编译板子选错了;参考我的:
    微信截图_20190108090042.png

    该用户从未签到

    发表于 2019-1-8 13:27 | 显示全部楼层
    肯定是没选板子类型的,选Generic ESP8266 Module 再编译就可以了。
  • TA的每日心情
    奋斗
    2019-3-13 19:17
  • 签到天数: 15 天

    [LV.4]偶尔看看III

    发表于 2019-1-16 09:36 | 显示全部楼层
    D3,你应该填写0
    您需要登录后才可以回帖 登录 | 立即注册  

    本版积分规则

    热门推荐

    今晚闲来无事搞了下STM32 Ardunio 的SPI2 SD卡的通讯
    今晚闲来无事搞了下STM32
    看到Ardunio很火,就想用STM32F103RBT6的板子试一下。之前移植网上带系统的,竟然说超
    arduino之串口通讯
    arduino之串口通讯
    总操流程: 1、写入程序 2、测试[hr][/backcolor] 写程序[/backcolor] [*]void s
    四位数码管动态显示
    四位数码管动态显示
    代码如下;从9990到9999,然后再从9898开始 代码撸起; const unsigned char dofly_Du
    求助!GM65二维码扫描模块怎么用?
    求助!GM65二维码扫描模块
    求助!GM65二维码扫描模块怎么用? 卖家给的资料真的看不懂该怎么弄。。( ̄▽ ̄)~*
    Arduino Pro Micro 打造USB音频转 3.5mm音频转接板
    Arduino Pro Micro 打造US
    3.5mm耳机接口是PC上最常见的音频接口,因为它工艺简单、价格低廉在涉及到声音输入输
    Copyright   ©2015-2016  Arduino中文社区  Powered by©Discuz!   ( 蜀ICP备14017632号-3 )
    快速回复 返回顶部 返回列表