mirror of
https://github.com/MultiMote/niimbluelib.git
synced 2025-03-16 03:21:01 +03:00
Fix capacitor BLE slow transfer
This commit is contained in:
parent
de886b1ebd
commit
e3fb0fafc2
@ -149,7 +149,7 @@ export class NiimbotCapacitorBleClient extends NiimbotAbstractClient {
|
||||
await Utils.sleep(this.packetIntervalMs);
|
||||
|
||||
const dw = new DataView(data.buffer, data.byteOffset, data.byteLength);
|
||||
await BleClient.write(this.deviceId!, this.serviceUUID!, this.characteristicUUID!, dw);
|
||||
await BleClient.writeWithoutResponse(this.deviceId!, this.serviceUUID!, this.characteristicUUID!, dw);
|
||||
|
||||
this.emit("rawpacketsent", new RawPacketSentEvent(data));
|
||||
};
|
||||
|
Loading…
x
Reference in New Issue
Block a user