HarmonyOS BLE蓝牙发送数据量大的问题?

let characteristic: ble.BLECharacteristic = {
  serviceUuid: '49535343-FE7D-4AE5-8FA9-9FAFD205E455',
  characteristicUuid: '49535343-8841-43F4-A8D4-ECBE34729BB3',
  characteristicValue: result.buffer,
  descriptors: []
};
await device.writeCharacteristicValue(characteristic, ble.GattWriteType.WRITE);

如果发送数据量较大的话会报BussinessError 2900100: trans exception.是否需要分包发送,分包的大小又是多少?

阅读 494
1 个回答
logo
HarmonyOS
子站问答
访问
宣传栏