🛜 Fixed wifi with protobuf, added rest message proto
This commit is contained in:
@@ -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,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; }
|
||||
|
||||
Reference in New Issue
Block a user