Move to multi-connection modality

This commit is contained in:
Jack Kingsman
2026-02-04 14:22:49 -08:00
committed by jkingsman
parent 64d261e6f9
commit a86d2d7cda
23 changed files with 427 additions and 63 deletions
+2 -2
View File
@@ -14,7 +14,7 @@ export default async function globalSetup(_config: FullConfig) {
if (!res.ok) {
throw new Error(`Health check returned ${res.status}`);
}
const health = (await res.json()) as { radio_connected: boolean; serial_port: string | null };
const health = (await res.json()) as { radio_connected: boolean; connection_info: string | null };
if (!health.radio_connected) {
throw new Error(
@@ -23,7 +23,7 @@ export default async function globalSetup(_config: FullConfig) {
);
}
console.log(`Radio connected on ${health.serial_port}`);
console.log(`Radio connected on ${health.connection_info}`);
return;
} catch (err) {
lastError = err instanceof Error ? err : new Error(String(err));
+1 -1
View File
@@ -21,7 +21,7 @@ async function fetchJson<T>(path: string, init?: RequestInit): Promise<T> {
export interface HealthStatus {
radio_connected: boolean;
serial_port: string | null;
connection_info: string | null;
}
export function getHealth(): Promise<HealthStatus> {