1

https://webbluetoothcg.github.io/web-bluetooth/#dom-bluetoothremotegattcharacteristic-writevalue,我看到 writeValue 返回一个 DataView,但我的 Chrome 上一直为空(版本 70.0.3538.77(官方版本)(64-位)在高山脉)。

我所做的如下,writeValue() 的状态为空,readValue() 的值是一个空的 DataView:

let status = await wifiChar.writeValue(encoder.encode(wifiValue));
console.log('status: ', status)
let value = await wifiChar.readValue();
console.log('value: ', value)
4

0 回答 0