Build application shell with live runtime status
This commit is contained in:
@@ -0,0 +1,6 @@
|
||||
export type RuntimeConfig = {
|
||||
mode: string;
|
||||
controllerName: string;
|
||||
controllerIp: string;
|
||||
backendPort: number;
|
||||
};
|
||||
@@ -0,0 +1,16 @@
|
||||
export type TelemetrySnapshot = {
|
||||
sensorId: number;
|
||||
name: string;
|
||||
modbusAddress: number;
|
||||
bitOffset: number | null;
|
||||
rawValue: number;
|
||||
value: number | boolean | string | null;
|
||||
unit: string | null;
|
||||
timestamp: string;
|
||||
};
|
||||
|
||||
export type TelemetryBroadcastMessage = {
|
||||
timestamp: string;
|
||||
sensorCount: number;
|
||||
snapshots: TelemetrySnapshot[];
|
||||
};
|
||||
Reference in New Issue
Block a user