Updates the types
This commit is contained in:
+110
-7
@@ -9,17 +9,120 @@ export interface ControllerInput {
|
|||||||
|
|
||||||
export type angles = number[] | Int16Array;
|
export type angles = number[] | Int16Array;
|
||||||
|
|
||||||
export type AnglesData = {
|
export type WifiStatus = {
|
||||||
type: 'angles';
|
status: number;
|
||||||
data: angles;
|
local_ip: string;
|
||||||
|
mac_address: string;
|
||||||
|
rssi: number;
|
||||||
|
ssid: string;
|
||||||
|
bssid: string;
|
||||||
|
channel: number;
|
||||||
|
subnet_mask: string;
|
||||||
|
gateway_ip: string;
|
||||||
|
dns_ip_1: string;
|
||||||
|
dns_ip_2?: string;
|
||||||
};
|
};
|
||||||
|
|
||||||
export type LogData = {
|
export type WifiSettings = {
|
||||||
type: 'log';
|
hostname: string;
|
||||||
data: string;
|
priority_RSSI: boolean;
|
||||||
|
wifi_networks: networkItem[];
|
||||||
};
|
};
|
||||||
|
|
||||||
export type WebSocketJsonMsg = AnglesData | LogData;
|
export type KnownNetworkItem = {
|
||||||
|
ssid: string;
|
||||||
|
password: string;
|
||||||
|
static_ip_config: boolean;
|
||||||
|
local_ip?: string;
|
||||||
|
subnet_mask?: string;
|
||||||
|
gateway_ip?: string;
|
||||||
|
dns_ip_1?: string;
|
||||||
|
dns_ip_2?: string;
|
||||||
|
};
|
||||||
|
|
||||||
|
export type NetworkItem = {
|
||||||
|
rssi: number;
|
||||||
|
ssid: string;
|
||||||
|
bssid: string;
|
||||||
|
channel: number;
|
||||||
|
encryption_type: number;
|
||||||
|
};
|
||||||
|
|
||||||
|
export type ApStatus = {
|
||||||
|
status: number;
|
||||||
|
ip_address: string;
|
||||||
|
mac_address: string;
|
||||||
|
station_num: number;
|
||||||
|
};
|
||||||
|
|
||||||
|
export type ApSettings = {
|
||||||
|
provision_mode: number;
|
||||||
|
ssid: string;
|
||||||
|
password: string;
|
||||||
|
channel: number;
|
||||||
|
ssid_hidden: boolean;
|
||||||
|
max_clients: number;
|
||||||
|
local_ip: string;
|
||||||
|
gateway_ip: string;
|
||||||
|
subnet_mask: string;
|
||||||
|
};
|
||||||
|
|
||||||
|
export type LightState = {
|
||||||
|
led_on: boolean;
|
||||||
|
};
|
||||||
|
|
||||||
|
export type BrokerSettings = {
|
||||||
|
mqtt_path: string;
|
||||||
|
name: string;
|
||||||
|
unique_id: string;
|
||||||
|
};
|
||||||
|
|
||||||
|
export type NTPStatus = {
|
||||||
|
status: number;
|
||||||
|
utc_time: string;
|
||||||
|
local_time: string;
|
||||||
|
server: string;
|
||||||
|
uptime: number;
|
||||||
|
};
|
||||||
|
|
||||||
|
export type NTPSettings = {
|
||||||
|
enabled: boolean;
|
||||||
|
server: string;
|
||||||
|
tz_label: string;
|
||||||
|
tz_format: string;
|
||||||
|
};
|
||||||
|
|
||||||
|
export type Analytics = {
|
||||||
|
max_alloc_heap: number;
|
||||||
|
psram_size: number;
|
||||||
|
free_psram: number;
|
||||||
|
free_heap: number;
|
||||||
|
total_heap: number;
|
||||||
|
min_free_heap: number;
|
||||||
|
core_temp: number;
|
||||||
|
fs_total: number;
|
||||||
|
fs_used: number;
|
||||||
|
uptime: number;
|
||||||
|
};
|
||||||
|
|
||||||
|
export type StaticSystemInformation = {
|
||||||
|
esp_platform: string;
|
||||||
|
firmware_version: string;
|
||||||
|
cpu_freq_mhz: number;
|
||||||
|
cpu_type: string;
|
||||||
|
cpu_rev: number;
|
||||||
|
cpu_cores: number;
|
||||||
|
sketch_size: number;
|
||||||
|
free_sketch_space: number;
|
||||||
|
sdk_version: string;
|
||||||
|
arduino_version: string;
|
||||||
|
flash_chip_size: number;
|
||||||
|
flash_chip_speed: number;
|
||||||
|
cpu_reset_reason: string;
|
||||||
|
};
|
||||||
|
|
||||||
|
export type SystemInformation = Analytics & StaticSystemInformation;
|
||||||
|
|
||||||
|
|
||||||
export type MQTTStatus = {
|
export type MQTTStatus = {
|
||||||
enabled: boolean;
|
enabled: boolean;
|
||||||
|
|||||||
Reference in New Issue
Block a user