🛜 Fixed wifi with protobuf, added rest message proto

This commit is contained in:
Niklas Jensen
2026-01-02 14:55:28 +01:00
committed by nikguin04
parent a98faabfba
commit 9c1ad30771
6 changed files with 751 additions and 104 deletions
+27
View File
@@ -0,0 +1,27 @@
syntax = "proto3";
import "websocket_message.proto";
// Note: This is most likely a "temporary" proto that will be redone, as these endpoints are static for the esp32, which means we are forced to use WiFi for communication
package rest_message;
message WifiStatus {
int32 status = 1;
string local_ip = 2;
string mac_address = 3;
float rssi = 4;
string ssid = 5;
string bssid = 6;
uint32 channel = 7;
string subnet_mask = 8;
string gateway_ip = 9;
string dns_ip_1 = 10;
optional string dns_ip_2 = 11;
}
message WifiSettings {
string hostname = 1;
bool priority_rssi = 2;
repeated socket_message.KnownNetworkItem wifi_networks = 3;
}
+1 -9
View File
@@ -1,15 +1,7 @@
syntax = "proto3";
// REST MESSAGE TYPES
// TODO: i am too lazy to create a new file and compile it manually, so move this to a new proto before merging
// END REST MESSAGE TYPES
package socket_message;
message Vector { float x = 1; float y = 2; }