Updated all wifi endpoints to use protobufs

This commit is contained in:
Niklas Jensen
2026-01-30 18:36:39 +01:00
committed by nikguin04
parent 56d81f75cb
commit 4575f63921
7 changed files with 100 additions and 98 deletions
+31
View File
@@ -86,6 +86,35 @@ message WifiSettings {
message WifiSettingsRequest {}
// WiFi scan result - single network found during scan
message WifiNetworkScan {
int32 rssi = 1;
string ssid = 2;
string bssid = 3;
uint32 channel = 4;
uint32 encryption_type = 5;
}
// Response for /api/wifi/networks endpoint
message WifiNetworkList {
repeated WifiNetworkScan networks = 1;
}
// Response for /api/wifi/sta/status endpoint
message WifiStatus {
uint32 status = 1;
uint32 local_ip = 2;
string mac_address = 3;
int32 rssi = 4;
string ssid = 5;
string bssid = 6;
uint32 channel = 7;
uint32 subnet_mask = 8;
uint32 gateway_ip = 9;
uint32 dns_ip_1 = 10;
uint32 dns_ip_2 = 11;
}
// =============================================================================
// Camera Settings - shared data types
// =============================================================================
@@ -265,6 +294,8 @@ message Response {
ServoSettings servo_settings = 20;
FileList file_list = 30;
WifiSettings wifi_settings = 40;
WifiNetworkList wifi_network_list = 41;
WifiStatus wifi_status = 42;
CameraSettings camera_settings = 50;
MDNSSettings mdns_settings = 60;
MDNSStatus mdns_status = 61;