zforl 发表于 2017-8-9 11:21:40

APICloud生成安卓app无法绑定设备 在线求助!!

代码是自动生成APICloud代码 根据教程替换后编译
首先可以搜索到设备

可以点击进入 且可以进行控制

但是返回后不能变成已绑定设备

IOS端测试没有问题 Android端需重启客户端再次重复绑定操作后 可变为已绑定设备 求大神帮助 该怎么办
下面是APICloud控制台打印信息
设置标题 at deviceControl.html : 430时间还未到预期时间 at deviceControl.html : 461注册通知接口, 设备主动上报状态 at deviceControl.html : 217ret = {"device":{"mac":"A020A60F5C53","did":"QMHXuuqhsb5sXa7DWmrjPQ"},"data":{"LED":false},"status":{"data":{"entity0":{"LED":false}}},"isConnected":true,"isOnline":true,"netStatus":2}, err = "" at deviceControl.html : 218通知 关闭定时器 at deviceControl.html : 224**************readData被调用*************** at deviceControl.html : 122data = {"LED":false} at deviceControl.html : 124读数据 at deviceControl.html : 127读0个数据点 at deviceControl.html : 140blockEl = at deviceControl.html : 527获取设备状态回调 + ret = {"device":{"mac":"A020A60F5C53","did":"QMHXuuqhsb5sXa7DWmrjPQ"},"data":{"LED":false},"status":{"data":{"entity0":{"LED":false}}},"isConnected":true,"isOnline":true,"netStatus":2}err = "" at deviceControl.html : 185在获取设备状态中更改UI at deviceControl.html : 196**************readData被调用*************** at deviceControl.html : 122data = {"LED":false} at deviceControl.html : 124读数据 at deviceControl.html : 127读0个数据点 at deviceControl.html : 140blockEl = at deviceControl.html : 527buttonClsName = .gos_LED, isChecked = true at deviceControl.html : 515buttonClsName == ".gos_LED" at deviceControl.html : 517下发控制指令: data = {"LED":true}device = {"mac":"A020A60F5C53","did":"QMHXuuqhsb5sXa7DWmrjPQ","productKey":"b61044001ef64518a3c2196952a29616","productName":"MyTestLED","ip":"192.168.0.112","passcode":"","isConnected":false,"isOnline":true,"isLAN":true,"isDisabled":false,"remark":"","alias":"","isBind":false,"isProductDefined":true,"isSubscribed":false,"type":0,"netStatus":1}, device.device = undefined at deviceControl.html : 159注册通知接口, 设备主动上报状态 at deviceControl.html : 217ret = {"device":{"mac":"A020A60F5C53","did":"QMHXuuqhsb5sXa7DWmrjPQ"},"isConnected":true,"isOnline":true,"netStatus":2}, err = "" at deviceControl.html : 218**************readData被调用*************** at deviceControl.html : 122data = undefined at deviceControl.html : 124下发控制指令回调 ret = {"device":{"mac":"A020A60F5C53","did":"QMHXuuqhsb5sXa7DWmrjPQ"},"isConnected":true,"isOnline":true,"netStatus":2,"sn":0}, err = "" at deviceControl.html : 165注册通知接口, 设备主动上报状态 at deviceControl.html : 217ret = {"device":{"mac":"A020A60F5C53","did":"QMHXuuqhsb5sXa7DWmrjPQ"},"data":{"LED":true},"status":{"data":{"entity0":{"LED":true}}},"isConnected":true,"isOnline":true,"netStatus":2}, err = "" at deviceControl.html : 218**************readData被调用*************** at deviceControl.html : 122data = {"LED":true} at deviceControl.html : 124读数据 at deviceControl.html : 127读0个数据点 at deviceControl.html : 140blockEl = at deviceControl.html : 527解除订阅 at deviceControl.html : 331







zforl 发表于 2017-8-9 11:29:03

可发现设备 点击后可以进入 并且控制 但是返回设备列表页面 设备并没用变为已绑定设备 还是在发现新设备中 且显示未绑定

lihao 发表于 2017-8-14 11:25:43

APP的 Product KeyAPPID App Secret与固件的不对应

Tom 发表于 2017-8-14 15:36:45

用机智云app试试
页: [1]
查看完整版本: APICloud生成安卓app无法绑定设备 在线求助!!