Updated WIFI on esp and svelte side to use proto

This commit is contained in:
Niklas Jensen
2026-01-29 13:28:38 +01:00
committed by nikguin04
parent 6d62b00c0e
commit 1a280f5356
7 changed files with 208 additions and 239 deletions
+5
View File
@@ -18,3 +18,8 @@ api.FileEditRequest.path max_size:128
api.FileEditRequest.content type:FT_POINTER
api.FileMkdirRequest.path max_size:128
api.WifiNetwork.ssid max_size:33
api.WifiNetwork.password max_size:65
api.WifiSettings.hostname max_size:33
api.WifiSettings.wifi_networks max_count:5
+26
View File
@@ -63,6 +63,29 @@ message ServoSettings {
message ServoSettingsRequest {}
// =============================================================================
// WiFi STA Settings - shared data types
// =============================================================================
message WifiNetwork {
string ssid = 1;
string password = 2;
bool static_ip_config = 3;
uint32 local_ip = 4;
uint32 gateway_ip = 5;
uint32 subnet_mask = 6;
uint32 dns_ip_1 = 7;
uint32 dns_ip_2 = 8;
}
message WifiSettings {
string hostname = 1;
bool priority_rssi = 2;
repeated WifiNetwork wifi_networks = 3; // max 5 networks
}
message WifiSettingsRequest {}
// =============================================================================
// File System - shared data types
// =============================================================================
@@ -109,6 +132,8 @@ message Request {
FileDeleteRequest file_delete_request = 31;
FileEditRequest file_edit_request = 32;
FileMkdirRequest file_mkdir_request = 33;
WifiSettings wifi_settings = 40;
WifiSettingsRequest wifi_settings_request = 41;
}
}
@@ -123,5 +148,6 @@ message Response {
APStatus ap_status = 11;
ServoSettings servo_settings = 20;
FileList file_list = 30;
WifiSettings wifi_settings = 40;
}
}