forked from Blendman974/faceclaw
Make BLE benchmark work on iOS
This commit is contained in:
1 parent
50c608c26b
commit
8e50c004a6
4 files changed
+74
-3
No files matched your search
@@ -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
|
||||
|
||||
Reference in new issue
Block a user