expo-ble模块测试demo 联调BLE模块 take 10 新增log 打印ani文件前后512字节
This commit is contained in:
@@ -96,7 +96,7 @@ export class BleClient {
|
||||
requestMTU: BLE_UUIDS.REQUEST_MTU
|
||||
});
|
||||
if (device.mtu < BLE_UUIDS.REQUEST_MTU) {
|
||||
console.log("MTU not supported, requesting default to ", BLE_UUIDS.REQUEST_MTU);
|
||||
console.log(`MTU ${device.mtu} not supported, requesting default to ${BLE_UUIDS.REQUEST_MTU}`);
|
||||
device = await device.requestMTU(BLE_UUIDS.REQUEST_MTU);
|
||||
// Give some time for the stack to stabilize after MTU change
|
||||
await new Promise(resolve => setTimeout(resolve, 500));
|
||||
|
||||
Reference in New Issue
Block a user