详细问题描述
IOS环境下测试写入数据可以正常发送回调数据,但是在安卓下发送第一个数据包成功,第二个包就提示10007.请管理员帮忙查看一下问题 谢谢!
我用的发送uuid是:0000FF01-0000-1000-8000-00805F9B34FB
10:25:13.370 发送的数据包 = 2,162,12,118,207,213,207,114,96,15,236,157,190,11,126,239,159,111,0,0 at js/bluetooth.js:412
10:25:13.390 get characteristics success: 5 at js/bluetooth.js:448
10:25:13.410 0: {"uuid":"00001001-0000-1000-8000-00805F9B34FB","properties":{"read":true,"write":false,"notify":false,"indicate":false}} at js/bluetooth.js:450
10:25:13.430 1: {"uuid":"0000FF02-0000-1000-8000-00805F9B34FB","properties":{"read":false,"write":false,"notify":true,"indicate":false}} at js/bluetooth.js:450
10:25:13.450 2: {"uuid":"0000FF01-0000-1000-8000-00805F9B34FB","properties":{"read":false,"write":true,"notify":false,"indicate":false}} at js/bluetooth.js:450
10:25:13.470 3: {"uuid":"00001004-0000-1000-8000-00805F9B34FB","properties":{"read":true,"write":false,"notify":false,"indicate":false}} at js/bluetooth.js:450
10:25:13.490 4: {"uuid":"00001005-0000-1000-8000-00805F9B34FB","properties":{"read":true,"write":true,"notify":false,"indicate":false}} at js/bluetooth.js:450
10:25:13.510 写入数据失败: {"code":10007,"message":"property not support"} at js/bluetooth.js:422
10:25:13.530 第2数据包发送失败! at js/bluetooth.js:435
10:25:13.550 读取特征值的二进制数据操作完成回调函数: 10007 at js/bluetooth.js:436
[内容]
重现步骤
[步骤]
[结果]
[期望]
[如果语言难以表述清晰,拍一个视频或截图,有图有真相]
IDE运行环境说明
[HBuilder 或 HBuilderX。如果你用其他工具开发uni-app,也需要在此说明]
[IDE版本号]
[windows版本号]
[mac版本号]
uni-app运行环境说明
[运行端是h5或app或某个小程序?]
[运行端版本号]
[项目是cli创建的还是HBuilderX创建的?如果是cli创建的,请更新到最新版cli再试]
[编译模式是老模板模式还是新的自定义组件模式?]
App运行环境说明
[Android版本号]
[iOS版本号]
[手机型号]
[模拟器型号]
附件
[IDE问题请提供HBuilderX运行日志。菜单帮助-查看运行日志,点右键打开文件所在目录,将log文件压缩成zip包上传]
[App问题请提供可重现问题的代码片段,你补充的细一点,问题就解决的快一点]
[App安装包或H5地址]
[可重现代码片段]
联系方式
[QQ]
0 个回复