定义成空调编译报错define BLINKER_ALIGENIE_AIRCONDITION-Arduino中文社区 - Powered by Discuz! Archiver

frankxu3698 发表于 2022-4-26 22:14

定义成空调编译报错define BLINKER_ALIGENIE_AIRCONDITION

老师好!请教问题,望不吝赐教
设置#define BLINKER_ALIGENIE_AIRCONDITION或者#define BLINKER_DUEROS_AIRCONDITION//小度空调,设置成灯就没有问题
请教语音查询温度该设置成什么,如果设置成传感器,还能控制开关了吗
报错:
f:\workspace\Arduino-blinker\0.3.9\yuxiu_Temp_controller_0.0.005\yuxiu_Temp_controller_0.0.005.ino: In function 'void miotQuery(int32_t)':
yuxiu_Temp_controller_0.0.005:200:13: error: 'BlinkerMIOT' was not declared in this scope; did you mean 'BlinkerMQTT'?
200 |             BlinkerMIOT.powerState(oState ? "on" : "off");
|             ^~~~~~~~~~~
      |             BlinkerMQTT
f:\workspace\Arduino-blinker\0.3.9\yuxiu_Temp_controller_0.0.005\yuxiu_Temp_controller_0.0.005.ino: In function 'void setup()':
yuxiu_Temp_controller_0.0.005:1314:5: error: 'BlinkerMIOT' was not declared in this scope; did you mean 'BlinkerMQTT'?
1314 |   BlinkerMIOT.attachPowerState(miotPowerState);            //小爱语音操作注册函数
|   ^~~~~~~~~~~
      |   BlinkerMQTT
exit status 1

点灯官方 发表于 2022-4-27 09:18

请测试例程
页: [1]
查看完整版本: 定义成空调编译报错define BLINKER_ALIGENIE_AIRCONDITION