收藏官网首页
查看: 11468|回复: 3

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

3

主题

8

帖子

110

积分

注册会员

Rank: 2

积分
110
跳转到指定楼层
楼主
发表于 2017-8-9 11:21:40 | 只看该作者 |只看大图 回帖奖励 |倒序浏览 |阅读模式
教您5分钟接入机智云,实现傻瓜式开发
代码是自动生成APICloud代码 根据教程替换后编译
首先可以搜索到设备

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

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

IOS端测试没有问题 Android端需重启客户端再次重复绑定操作后 可变为已绑定设备 求大神帮助 该怎么办
下面是APICloud控制台打印信息
设置标题 at deviceControl.html : 430
时间还未到预期时间 at deviceControl.html : 461
注册通知接口, 设备主动上报状态 at deviceControl.html : 217
ret = {"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 : 122
data = {"LED":false} at deviceControl.html : 124
读数据 at deviceControl.html : 127
读0个数据点 at deviceControl.html : 140
blockEl = [object HTMLSpanElement] 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 : 122
data = {"LED":false} at deviceControl.html : 124
读数据 at deviceControl.html : 127
读0个数据点 at deviceControl.html : 140
blockEl = [object HTMLSpanElement] at deviceControl.html : 527
buttonClsName = .gos_LED, isChecked = true at deviceControl.html : 515
buttonClsName == ".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 : 217
ret = {"device":{"mac":"A020A60F5C53","did":"QMHXuuqhsb5sXa7DWmrjPQ"},"isConnected":true,"isOnline":true,"netStatus":2}, err = "" at deviceControl.html : 218
**************readData被调用*************** at deviceControl.html : 122
data = 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 : 217
ret = {"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 : 122
data = {"LED":true} at deviceControl.html : 124
读数据 at deviceControl.html : 127
读0个数据点 at deviceControl.html : 140
blockEl = [object HTMLSpanElement] at deviceControl.html : 527
解除订阅 at deviceControl.html : 331








3

主题

8

帖子

110

积分

注册会员

Rank: 2

积分
110
沙发
 楼主| 发表于 2017-8-9 11:29:03 | 只看该作者
可发现设备 点击后可以进入 并且控制 但是返回设备列表页面 设备并没用变为已绑定设备 还是在发现新设备中 且显示未绑定

1

主题

8

帖子

124

积分

注册会员

Rank: 2

积分
124
板凳
发表于 2017-8-14 11:25:43 | 只看该作者
APP的 Product Key  APPID App Secret与固件的不对应

27

主题

235

帖子

1053

积分

金牌会员

Rank: 6Rank: 6

积分
1053
地板
发表于 2017-8-14 15:36:45 | 只看该作者
用机智云app试试
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

加入Q群 返回顶部

版权与免责声明 © 2006-2024 Gizwits IoT Technology Co., Ltd. ( 粤ICP备11090211号 )

快速回复 返回顶部 返回列表