plutosherry
发表于 2017-10-11 09:59:12
看看!学习学习!
plutosherry
发表于 2017-10-13 11:00:39
In file included from C:\Users\SHERRY\Documents\Arduino\OpenMQTTGateway\ZgatewayIR.ino:45:0:
C:\Users\SHERRY\Documents\Arduino\OpenMQTTGateway\ZgatewayIR.ino: In function 'boolean IRtoMQTT()':
C:\Users\SHERRY\Documents\Arduino\OpenMQTTGateway\libraries\IRremoteESP8266\src/IRrecv.h:33:24: error: invalid operands of types 'volatile uint16_t* {aka volatile short unsigned int*}' and 'unsigned int' to binary 'operator*'
#define RAWTICK 2U// Capture tick to uSec factor.
^
C:\Users\SHERRY\Documents\Arduino\OpenMQTTGateway\ZgatewayIR.ino:94:45: note: in expansion of macro 'RAWTICK'
rawCode = rawCode + (results.rawbuf * RAWTICK);
^
exit status 1
为开发板 NodeMCU 1.0 (ESP-12E Module) 编译时出错。
plutosherry
发表于 2017-10-13 11:08:16
本帖最后由 plutosherry 于 2017-10-13 11:12 编辑
plutosherry 发表于 2017-10-13 11:00
In file included from C:%users\SHERRY\Documents\Arduino\OpenMQTTGateway\ZgatewayIR.ino:45:0:
C:%user ...
已解决,请作者修订一下,修改 这一部分的时候有一个错误
rawCode = rawCode + (results.rawbuf (i)* RAWTICK);
^
此处少了一个集合,所以导致编译出错PS:收到论坛的限制,请自行将(i)修改为方括号
plutosherry
发表于 2017-10-13 11:29:27
捕获的raw红外代码为何老是变化?
同样都是开机键,按键每次按下后终端一侧显示的接收到的红外代码却一直在变。。。。。
plutosherry
发表于 2017-10-13 11:30:32
另求其中IR控制部分switch的configuration.yaml配置信息好对照。谢谢!
671792320
发表于 2017-10-15 11:45:47
plutosherry 发表于 2017-10-13 11:30
另求其中IR控制部分switch的configuration.yaml配置信息好对照。谢谢!
目前我很久没有弄IR了,我看作者最新的代码好像已经修改了问题。过几天我会抽时间更新的。另外就是你说的配置文件对照,这个你只能自己去homeassistant官网爬文档了。
cjf307408894
发表于 2017-10-15 21:31:53
谢谢分享
lvxunkk
发表于 2017-10-16 20:43:14
谢谢分享...
ericshen
发表于 2017-10-18 14:10:43
好像很厉害的样子
yxm203
发表于 2017-10-18 14:11:59
这是要做什么啊啊?