Use actual list of regulatory domains for wifi dialog.

This commit is contained in:
Robin E. R. Davies
2024-11-20 23:40:04 -05:00
parent 0dfe7b8080
commit 0ca7545b3f
12 changed files with 661 additions and 332 deletions
+1 -4
View File
@@ -1018,10 +1018,7 @@ export class PiPedalModel //implements PiPedalModel
}
try {
let isoFetch = await fetch(new Request('iso_codes.json'));
this.countryCodes = (await isoFetch.json()) as { [Name: string]: string };
this.countryCodes = await this.getWebSocket().request<{ [Name: string]: string }>("getWifiRegulatoryDomains");
this.clientId = (await this.getWebSocket().request<number>("hello")) as number;