提交 e47003ab 编写于 作者: 雪洛's avatar 雪洛

fix: 修复低功耗蓝牙写入特征值数据报错的Bug

上级 b73d222d
......@@ -139,6 +139,8 @@ export function readBLECharacteristicValue (data, callbackId) {
}
export function writeBLECharacteristicValue (data, callbackId) {
if (typeof data.value === 'string') {
data.value = base64ToArrayBuffer(data.value)
}
bluetoothExec('writeBLECharacteristicValue', callbackId, data)
}
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册