Make BLE benchmark work on iOS

This commit is contained in:
James Babcock committed 2026-10-26 11:12:55 -07:00
1 parent 50c608c26b
commit 8e50c004a6
4 files changed
+74 -3

No files matched your search

+15
View File
@@ -663,6 +663,21 @@ export class FaceclawCommunicatorBridge {
return () => { this.communicator.removeCompassListenerListener(proxy); };
}
/** Developer > Debug tests > BLE bandwidth; see app/native/bandwidth-benchmark.ios.ts. */
startBandwidthBenchmark(messageSize: number, windowSize: number, durationMs: number, linkMode: number): boolean {
return Boolean(this.communicator.startBandwidthBenchmarkWithLinkModeMessageSizeWindowSizeDurationMsLinkMode(
messageSize, windowSize, durationMs, linkMode));
}
cancelBandwidthBenchmark(): void {
this.communicator.cancelBandwidthBenchmark();
}
/** Status/results of the current or most recent run, as JSON. */
getBandwidthBenchmarkStatus(): string {
return String(this.communicator.getBandwidthBenchmarkStatus());
}
/**
* Serialized glasses microphone enable/disable (the voice bridge's
* IosMicrophoneSession contract). A release while an enable awaits its ACK