l***@163.com
l***@163.com
  • 发布:2024-12-30 10:29
  • 更新:2024-12-30 10:29
  • 阅读:41

【报Bug】低功耗蓝牙问题

分类:uni-app

产品分类: uniapp/App

PC开发环境操作系统: Windows

PC开发环境操作系统版本号: windows10

HBuilderX类型: 正式

HBuilderX版本号: 4.43

手机系统: Android

手机系统版本号: Android 14

手机厂商: vivo

手机机型: vivox 70

页面类型: vue

vue版本: vue2

打包方式: 云端

项目创建方式: HBuilderX

操作步骤:
C2~RCD~{"101":{"c":"N","p":"A","v":"C1234567891"},"102":{"c":"N","p":"A","v":"C123"},"103":{"c":"Y","p":"A","v":"C"},"104":{"c":"N","p":"A","v":"C"},"105":{"c":"N","p":"A","v":"C"},"106":{"c":"N","p":"A","v":"C"},"107":{"c":"N","p":"A","v":"C"},"108":{"c":"N","p":"A","v":"Ch"},"p":"RS485-2","f":9600}

使用uni.writeBLECharacteristicValue传入上面的指令就会复现

预期结果:

正常会提示成功,蓝牙设备那一块能成功接收

实际结果:

正常会提示成功,蓝牙设备并没有受到数据

bug描述:

当输入传输给设备的指令长度过长时(超过300),uni.writeBLECharacteristicValue这个api会提示发送成功,但是实际上发送失败了,

C2~RCD~{"101":{"c":"N","p":"A","v":"C1234567891"},"102":{"c":"N","p":"A","v":"C123"},"103":{"c":"Y","p":"A","v":"C"},"104":{"c":"N","p":"A","v":"C"},"105":{"c":"N","p":"A","v":"C"},"106":{"c":"N","p":"A","v":"C"},"107":{"c":"N","p":"A","v":"C"},"108":{"c":"N","p":"A","v":"Ch"},"p":"RS485-2","f":9600}  
2024-12-30 10:29 负责人:无 分享
已邀请:

要回复问题请先登录注册