mirror of
https://github.com/emsesp/EMS-ESP32.git
synced 2025-12-08 08:49:52 +03:00
added status and renamed components
This commit is contained in:
@@ -10,14 +10,14 @@ export enum APNetworkStatus {
|
||||
LINGERING = 2
|
||||
}
|
||||
|
||||
export interface APStatus {
|
||||
export interface APStatusType {
|
||||
status: APNetworkStatus;
|
||||
ip_address: string;
|
||||
mac_address: string;
|
||||
station_num: number;
|
||||
}
|
||||
|
||||
export interface APSettings {
|
||||
export interface APSettingsType {
|
||||
provision_mode: APProvisionMode;
|
||||
ssid: string;
|
||||
password: string;
|
||||
|
||||
@@ -9,7 +9,7 @@ export enum MqttDisconnectReason {
|
||||
TCP_DISCONNECTED = 7
|
||||
}
|
||||
|
||||
export interface MqttStatus {
|
||||
export interface MqttStatusType {
|
||||
enabled: boolean;
|
||||
connected: boolean;
|
||||
client_id: string;
|
||||
@@ -19,7 +19,7 @@ export interface MqttStatus {
|
||||
connect_count: number;
|
||||
}
|
||||
|
||||
export interface MqttSettings {
|
||||
export interface MqttSettingsType {
|
||||
enabled: boolean;
|
||||
host: string;
|
||||
port: number;
|
||||
|
||||
@@ -20,7 +20,7 @@ export enum WiFiEncryptionType {
|
||||
WIFI_AUTH_WPA2_WPA3_PSK = 7
|
||||
}
|
||||
|
||||
export interface NetworkStatus {
|
||||
export interface NetworkStatusType {
|
||||
status: NetworkConnectionStatus;
|
||||
local_ip: string;
|
||||
local_ipv6: string;
|
||||
@@ -36,7 +36,7 @@ export interface NetworkStatus {
|
||||
hostname: string;
|
||||
}
|
||||
|
||||
export interface NetworkSettings {
|
||||
export interface NetworkSettingsType {
|
||||
ssid: string;
|
||||
bssid: string;
|
||||
password: string;
|
||||
|
||||
@@ -4,14 +4,14 @@ export enum NTPSyncStatus {
|
||||
NTP_ACTIVE = 2
|
||||
}
|
||||
|
||||
export interface NTPStatus {
|
||||
export interface NTPStatusType {
|
||||
status: NTPSyncStatus;
|
||||
utc_time: string;
|
||||
local_time: string;
|
||||
server: string;
|
||||
}
|
||||
|
||||
export interface NTPSettings {
|
||||
export interface NTPSettingsType {
|
||||
enabled: boolean;
|
||||
server: string;
|
||||
tz_label: string;
|
||||
|
||||
@@ -1,11 +1,11 @@
|
||||
export interface User {
|
||||
export interface UserType {
|
||||
username: string;
|
||||
password: string;
|
||||
admin: boolean;
|
||||
}
|
||||
|
||||
export interface SecuritySettings {
|
||||
users: User[];
|
||||
export interface SecuritySettingsType {
|
||||
users: UserType[];
|
||||
jwt_secret: string;
|
||||
}
|
||||
|
||||
|
||||
@@ -28,14 +28,17 @@ export interface SystemStatus {
|
||||
emsesp_version: string;
|
||||
esp_platform: string;
|
||||
status: busConnectionStatus;
|
||||
tx_mode: number;
|
||||
uptime: number;
|
||||
num_devices: number;
|
||||
num_sensors: number;
|
||||
num_analogs: number;
|
||||
free_heap: number;
|
||||
ntp_status: number;
|
||||
ota_status: boolean;
|
||||
mqtt_status: boolean;
|
||||
}
|
||||
|
||||
export interface OTASettings {
|
||||
export interface OTASettingsType {
|
||||
enabled: boolean;
|
||||
port: number;
|
||||
password: string;
|
||||
|
||||
Reference in New Issue
Block a user