mirror of
https://github.com/emsesp/EMS-ESP32.git
synced 2025-12-11 10:19:55 +03:00
show system status in status page
This commit is contained in:
@@ -2,13 +2,15 @@ import type { busConnectionStatus } from 'app/main/types';
|
||||
|
||||
import type { NetworkConnectionStatus } from './network';
|
||||
|
||||
// match SYSTEM_STATUS in System.h
|
||||
export enum SystemStatusCodes {
|
||||
SYSTEM_STATUS_NORMAL = 0,
|
||||
SYSTEM_STATUS_PENDING_UPLOAD = 1,
|
||||
SYSTEM_STATUS_UPLOADING = 100,
|
||||
SYSTEM_STATUS_ERROR_UPLOAD = 3,
|
||||
SYSTEM_STATUS_PENDING_RESTART = 4,
|
||||
SYSTEM_STATUS_RESTART_REQUESTED = 5
|
||||
SYSTEM_STATUS_RESTART_REQUESTED = 5,
|
||||
SYSTEM_STATUS_INVALID_GPIO = 6
|
||||
}
|
||||
|
||||
export interface SystemStatus {
|
||||
@@ -50,7 +52,7 @@ export interface SystemStatus {
|
||||
model: string;
|
||||
has_loader: boolean;
|
||||
has_partition: boolean;
|
||||
status: number; // SystemStatusCodes which matches SYSTEM_STATUS in System.h
|
||||
status: number; // System Status Codes which matches SYSTEM_STATUS in System.h
|
||||
temperature?: number;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user