Rename /version endpoint to /firmware_info; add heap memory statistics to firmware data and UI.
This commit is contained in:
@@ -194,7 +194,7 @@ export class Controller {
|
||||
|
||||
async version(): Promise<void> {
|
||||
controller.progressview.addIndeterminate("version", "Getting buildVersion")
|
||||
const response = await fetch(PUBLIC_URL + "/version");
|
||||
const response = await fetch(PUBLIC_URL + "/firmware_info");
|
||||
const json = await response.json();
|
||||
const versionInfo = json as VersionInfo;
|
||||
controller.progressview.removeProgress("version");
|
||||
@@ -499,7 +499,7 @@ export class Controller {
|
||||
|
||||
waitForReboot() {
|
||||
console.log("Check if controller online again")
|
||||
fetch(PUBLIC_URL + "/version", {
|
||||
fetch(PUBLIC_URL + "/firmware_info", {
|
||||
method: "GET",
|
||||
signal: AbortSignal.timeout(5000)
|
||||
}).then(response => {
|
||||
|
||||
Reference in New Issue
Block a user