[x] 这个问题满足提问指南
[x] 我阅读了开发文档
[x] 我使用了最新的库及APP进行测试,但是问题仍然存在
[x] 我搜索过类似问题的解决方法但是仍然无法解决
[x] 有设备端的LOG信息
[] 有编译报错信息
[x] 我已填写基本信息
设备信息
硬件: 树莓派3B
接入方式: WIFI
package版本: 无
blinker库版本: py0.2.0 dev分支 7月9日版
开发环境: 例程 VIM
操作系统: Raspbian
IDE 中的设置
无
问题描述
Python版小爱在例程下无响应,在App端可操作.小爱回复:要操作的设备好像出问题了,等一会再试把.
设置设备类型为OUTLET, MUTI_OUTLET均不可行
在运行Light例程时报错
File "MIOT_LIGHT.PY", line 151, in <module>
AttributeError: 'BLINKERA_MIOT' object has no attribute 'attachCancelMode'
代码
在这里填写您出现问题的最小示例代码
LOG信息
[00:57:41 2020] url: https://iot.diandeng.tech/api/v1/user/device/diy/auth?authKey=f6964df650d6&miType=outlet
[00:57:42 2020] Device Auth Data: {'detail': {'broker': 'aliyun', 'productKey': 'JgCGbHlndgz', 'iotId': 'pTMaErJ9cDllejQfUNXq000000', 'port': '1883', 'iotToken': '^1^1594400262327^ae66933b402409b', 'deviceName': 'B698C7A01T74NTL8FM0LGHCH', 'uuid': '9bb57b04bdf811ea9a655254', 'host': 'mqtt://public.iot-as-mqtt.cn-shanghai.aliyuncs.com'}, 'message': 1000}
[00:57:42 2020] deviceName: B698C7A01T74NTL8FM0LGHCH
[00:57:42 2020] iotId: pTMaErJ9cDllejQfUNXq000000
[00:57:42 2020] iotToken: ^1^1594400262327^ae66933b402409b
[00:57:42 2020] productKey: JgCGbHlndgz
[00:57:42 2020] uuid: 9bb57b04bdf811ea9a655254
[00:57:42 2020] broker: aliyun
[00:57:42 2020] clientID: B698C7A01T74NTL8FM0LGHCH
[00:57:42 2020] userName: pTMaErJ9cDllejQfUNXq000000
[00:57:42 2020] password: ^1^1594400262327^ae66933b402409b
[00:57:42 2020] subtopic: /JgCGbHlndgz/B698C7A01T74NTL8FM0LGHCH/r
[00:57:42 2020] pubtopic: /JgCGbHlndgz/B698C7A01T74NTL8FM0LGHCH/s
[00:57:43 2020] deviceIP: 192.168.0.5
[00:57:43 2020] mdns name: B698C7A01T74NTL8FM0LGHCH
[00:57:43 2020] mDNS responder init!
[00:57:43 2020] websocket Server init
[00:57:43 2020] ws://192.168.0.5:81
[00:57:43 2020] Connected with result code 0
[00:57:43 2020] MQTT connected
[01:07:07 2020] Subscribe topic: /JgCGbHlndgz/B698C7A01T74NTL8FM0LGHCH/r
[01:07:08 2020] payload: b'{"deviceType":"DiyLinux","data":{"get":"state"},"fromDevice":"9bb57b04bdf811ea9a655254","toDevice":"B698C7A01T74NTL8FM0LGHCH"}'
[01:07:08 2020] Get topic: /JgCGbHlndgz/B698C7A01T74NTL8FM0LGHCH/r
[01:07:08 2020] message_id:
[01:07:08 2020] data: {"deviceType":"DiyLinux","data":{"get":"state"},"fromDevice":"9bb57b04bdf811ea9a655254","toDevice":"B698C7A01T74NTL8FM0LGHCH"}
编译信息
无 |