Connection status

This commit is contained in:
Ben Meadors 2023-02-02 12:08:16 -06:00
parent 9afc20471f
commit 56f9989851

View file

@ -0,0 +1,113 @@
syntax = "proto3";
package meshtastic;
option optimize_for = LITE_RUNTIME;
option java_package = "com.geeksville.mesh";
option java_outer_classname = "ConfigProtos";
option go_package = "github.com/meshtastic/go/generated";
option csharp_namespace = "Meshtastic.Protobufs";
option swift_prefix = "";
import "meshtastic/module_config.proto";
message DeviceConnectionStatus {
/*
* WiFi Status
*/
optional TcpConnectionStatus wifi = 1;
/*
* WiFi Status
*/
optional EthernetConnectionStatus ethernet = 2;
/*
* Bluetooth Status
*/
optional BluetoothConnectionStatus bluetooth = 3;
/*
* Serial Status
*/
optional SerialConnectionStatus serial = 4;
}
/*
* WiFi connection status
*/
message WifiConnectionStatus {
/*
* Connection status
*/
TcpConnectionStatus status = 1;
/*
* WiFi access point ssid
*/
string ssid = 2;
/*
* Rssi of wireless connection
*/
int32 rssi = 3;
}
/*
* Ethernet connection status
*/
message EthernetConnectionStatus {
/*
* Connection status
*/
TcpConnectionStatus status = 1;
}
/*
* Ethernet or WiFi connection status
*/
message TcpConnectionStatus {
/*
* IP address of device
*/
fixed32 ip_address = 1;
/*
* Whether the device has an active connection or not
*/
bool is_connected = 2;
}
/*
* Bluetooth connection status
*/
message BluetoothConnectionStatus {
/*
* The pairing pin for bluetooth
*/
uint32 pin = 1;
/*
* Rssi of bluetooth connection
*/
int32 rssi = 2;
/*
* Whether the device has an active connection or not
*/
bool is_connected = 3;
}
/*
* Serial connection status
*/
message SerialConnectionStatus {
/*
* The pairing pin for bluetooth
*/
Serial_Baud baud = 1;
/*
* Whether the device has an active connection or not
*/
bool is_connected = 2;
}