奈何col
发表于 2019-4-9 09:39
nyx 发表于 2019-4-9 09:05
另外问问,此例程编译出来大约有527k,那么是不是无法在arduino UNO和2560上运行了? ...
不同板子编译出来的大小不一样
chenzhaohui
发表于 2019-4-9 12:29
请问怎么做一个显示灯是否打开的提示按键呢
coloz
发表于 2019-4-9 14:46
chenzhaohui 发表于 2019-4-9 12:29
请问怎么做一个显示灯是否打开的提示按键呢
请看教程,里面有讲
nyx
发表于 2019-4-9 16:39
奈何col 发表于 2019-4-9 09:39
不同板子编译出来的大小不一样
感谢!今天试着编译了一下。选8266的板子没问题(auth ;ssid , pswd三个数组填了具体值),512Kflash的会报容量不足。UNO和2560不论XP还是WIN7系统,会报如下错误:
构建选项已变更,全部重新构建
In file included from C:\Program Files\Arduino\libraries\blinker-library-master\src/Blinker.h:132:0,
from C:\Users\ADMINI~1\AppData\Local\Temp\arduino_modified_sketch_2971\sketch_apr09a.ino:3:
C:\Program Files\Arduino\libraries\blinker-library-master\src/BlinkerSerialESPMQTT.h:147:27: error: cannot declare field 'BlinkerSerialESPMQTT::Transp' to be of abstract type 'BlinkerSerialMQTT'
BlinkerSerialMQTT Transp;
^
In file included from C:\Program Files\Arduino\libraries\blinker-library-master\src/BlinkerSerialESPMQTT.h:4:0,
from C:\Program Files\Arduino\libraries\blinker-library-master\src/Blinker.h:132,
from C:\Users\ADMINI~1\AppData\Local\Temp\arduino_modified_sketch_2971\sketch_apr09a.ino:3:
C:\Program Files\Arduino\libraries\blinker-library-master\src/Adapters/BlinkerSerialMQTT.h:26:7: note: because the following virtual functions are pure within 'BlinkerSerialMQTT':
class BlinkerSerialMQTT : public BlinkerStream
In file included from C:\Program Files\Arduino\libraries\blinker-library-master\src/Adapters/BlinkerSerialMQTT.h:13:0,
from C:\Program Files\Arduino\libraries\blinker-library-master\src/BlinkerSerialESPMQTT.h:4,
from C:\Program Files\Arduino\libraries\blinker-library-master\src/Blinker.h:132,
from C:\Users\ADMINI~1\AppData\Local\Temp\arduino_modified_sketch_2971\sketch_apr09a.ino:3:
C:\Program Files\Arduino\libraries\blinker-library-master\src/Blinker/BlinkerStream.h:36:25: note: virtual int BlinkerStream::bPrint(char*, const String&)
virtual int bPrint(char * name, const String & data) = 0;
C:\Program Files\Arduino\libraries\blinker-library-master\src/Blinker/BlinkerStream.h:37:25: note: virtual int BlinkerStream::autoPrint(uint32_t)
virtual int autoPrint(uint32_t id) = 0;
C:\Program Files\Arduino\libraries\blinker-library-master\src/Blinker/BlinkerStream.h:39:25: note: virtual int BlinkerStream::aligenieAvail()
virtual int aligenieAvail() = 0;
C:\Program Files\Arduino\libraries\blinker-library-master\src/Blinker/BlinkerStream.h:40:25: note: virtual int BlinkerStream::duerAvail()
virtual int duerAvail() = 0;
C:\Program Files\Arduino\libraries\blinker-library-master\src/Blinker/BlinkerStream.h:41:25: note: virtual int BlinkerStream::needFreshShare()
virtual int needFreshShare() = 0;
exit status 1
为开发板 Arduino/Genuino Mega or Mega 2560 编译时出错。
请大佬帮忙看看
coloz
发表于 2019-4-9 17:18
nyx 发表于 2019-4-9 16:39
感谢!今天试着编译了一下。选8266的板子没问题(auth ;ssid , pswd三个数组填了具体值),512Kflash的 ...
1.可以自己在IDE中设置flash大小
2.我这边测试2560是正常的,请更新最新的库再测试
LaDaDee
发表于 2019-4-9 18:02
你好 uno的板子 和esp 模块的话 代码要怎么改 只需要添加相关引脚么
nyx
发表于 2019-4-9 18:54
本帖最后由 nyx 于 2019-4-9 19:51 编辑
coloz 发表于 2019-4-9 17:18
1.可以自己在IDE中设置flash大小
2.我这边测试2560是正常的,请更新最新的库再测试 ...
找到问题了,下了今天的库,还有存放路径问题。
看来blinker库的位置很重要:重新翻了下例程,到处是雷啊。要求是库放在“我的电脑>文档>Arduino>libraries 文件夹中”我原先是依照经验放在IDE的安装目录“C:\Program Files\Arduino\libraries”下。
另外可能库也有bug,今天下载的就可以;2月下的就不行
winxp32位下验证编译UNO和2560成功,一个20多k,一个21k。
今天的新问题是"技术员联盟“2017版WIN7 64位没法联网下ESP8266的2.5版,2016版WIN7 32位就可以。估计又是哪出错了。反正小问题,不用便是
奈何col
发表于 2019-4-9 21:18
nyx 发表于 2019-4-9 18:54
找到问题了,下了今天的库,还有存放路径问题。
看来blinker库的位置很重要:重新翻了下例程,到处是雷啊 ...
arduino IDE1.8.x后,库都是放到 我的电脑>文档>Arduino>libraries
blinker库会经常更新,务必保持最新,才能和最新app搭配使用
ockggy
发表于 2019-4-10 23:34
nyx 发表于 2019-4-9 09:04
我的也是,后来发现是#define BLINKER_WIFI 语句前的#复制掉了!
我现在又出现这问题了..
Arduino:1.8.8 (Windows 10), 开发板:"Arduino/Genuino Uno"
In file included from C:\Users\nagin\Documents\Arduino\libraries\blinker-library-master\src/Blinker.h:132:0,
from C:\Users\nagin\Desktop\111\111.ino:2:
C:\Users\nagin\Documents\Arduino\libraries\blinker-library-master\src/BlinkerSerialESPMQTT.h:147:27: error: cannot declare field 'BlinkerSerialESPMQTT::Transp' to be of abstract type 'BlinkerSerialMQTT'
BlinkerSerialMQTT Transp;
^
In file included from C:\Users\nagin\Documents\Arduino\libraries\blinker-library-master\src/BlinkerSerialESPMQTT.h:4:0,
from C:\Users\nagin\Documents\Arduino\libraries\blinker-library-master\src/Blinker.h:132,
from C:\Users\nagin\Desktop\111\111.ino:2:
C:\Users\nagin\Documents\Arduino\libraries\blinker-library-master\src/Adapters/BlinkerSerialMQTT.h:26:7: note: because the following virtual functions are pure within 'BlinkerSerialMQTT':
class BlinkerSerialMQTT : public BlinkerStream
^
In file included from C:\Users\nagin\Documents\Arduino\libraries\blinker-library-master\src/Adapters/BlinkerSerialMQTT.h:13:0,
from C:\Users\nagin\Documents\Arduino\libraries\blinker-library-master\src/BlinkerSerialESPMQTT.h:4,
from C:\Users\nagin\Documents\Arduino\libraries\blinker-library-master\src/Blinker.h:132,
from C:\Users\nagin\Desktop\111\111.ino:2:
C:\Users\nagin\Documents\Arduino\libraries\blinker-library-master\src/Blinker/BlinkerStream.h:36:25: note: virtual int BlinkerStream::bPrint(char*, const String&)
virtual int bPrint(char * name, const String & data) = 0;
^
C:\Users\nagin\Documents\Arduino\libraries\blinker-library-master\src/Blinker/BlinkerStream.h:37:25: note: virtual int BlinkerStream::autoPrint(uint32_t)
virtual int autoPrint(uint32_t id) = 0;
^
C:\Users\nagin\Documents\Arduino\libraries\blinker-library-master\src/Blinker/BlinkerStream.h:39:25: note: virtual int BlinkerStream::aligenieAvail()
virtual int aligenieAvail() = 0;
^
C:\Users\nagin\Documents\Arduino\libraries\blinker-library-master\src/Blinker/BlinkerStream.h:40:25: note: virtual int BlinkerStream::duerAvail()
virtual int duerAvail() = 0;
^
C:\Users\nagin\Documents\Arduino\libraries\blinker-library-master\src/Blinker/BlinkerStream.h:41:25: note: virtual int BlinkerStream::needFreshShare()
virtual int needFreshShare() = 0;
^
exit status 1
为开发板 Arduino/Genuino Uno 编译时出错。
在文件 -> 首选项开启
“编译过程中显示详细输出”选项
这份报告会包含更多信息。
奈何col
发表于 2019-4-11 09:09
ockggy 发表于 2019-4-10 23:34
我现在又出现这问题了..
Arduino:1.8.8 (Windows 10), 开发板:"Arduino/Genuino Uno"
请确保库为最新版,如果还有问题,请见:https://www.arduino.cn/thread-83658-1-1.html
页:
1
[2]
3
4
5
6
7
8
9
10
11