meshtastic-protobuf/meshtastic/connection_status.proto

121 wiersze
2.0 KiB
Protocol Buffer
Czysty Zwykły widok Historia

2023-02-02 18:08:16 +00:00
syntax = "proto3";
package meshtastic;
option csharp_namespace = "Meshtastic.Protobufs";
2023-05-20 09:29:34 +00:00
option go_package = "github.com/meshtastic/go/generated";
option java_outer_classname = "ConnStatusProtos";
option java_package = "com.geeksville.mesh";
2023-02-02 18:08:16 +00:00
option swift_prefix = "";
message DeviceConnectionStatus {
/*
* WiFi Status
*/
optional WifiConnectionStatus wifi = 1;
2023-02-02 18:08:16 +00:00
/*
* 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
*/
2023-02-03 16:10:07 +00:00
NetworkConnectionStatus status = 1;
2023-02-02 18:08:16 +00:00
/*
2023-05-20 09:29:34 +00:00
* WiFi access point SSID
2023-02-02 18:08:16 +00:00
*/
string ssid = 2;
/*
* RSSI of wireless connection
2023-02-02 18:08:16 +00:00
*/
int32 rssi = 3;
}
/*
* Ethernet connection status
*/
message EthernetConnectionStatus {
/*
* Connection status
*/
2023-05-20 09:29:34 +00:00
NetworkConnectionStatus status = 1;
2023-02-02 18:08:16 +00:00
}
/*
* Ethernet or WiFi connection status
*/
message NetworkConnectionStatus {
2023-02-02 18:08:16 +00:00
/*
* IP address of device
*/
fixed32 ip_address = 1;
2023-05-20 09:29:34 +00:00
2023-02-02 18:08:16 +00:00
/*
* Whether the device has an active connection or not
*/
bool is_connected = 2;
/*
* Whether the device has an active connection to an MQTT broker or not
*/
bool is_mqtt_connected = 3;
/*
* Whether the device is actively remote syslogging or not
*/
bool is_syslog_connected = 4;
2023-02-02 18:08:16 +00:00
}
/*
* Bluetooth connection status
*/
message BluetoothConnectionStatus {
/*
* The pairing PIN for bluetooth
2023-02-02 18:08:16 +00:00
*/
uint32 pin = 1;
/*
* RSSI of bluetooth connection
2023-02-02 18:08:16 +00:00
*/
2023-02-02 18:17:13 +00:00
int32 rssi = 2;
2023-02-02 18:08:16 +00:00
/*
* Whether the device has an active connection or not
*/
bool is_connected = 3;
}
/*
* Serial connection status
*/
2023-05-20 09:29:34 +00:00
message SerialConnectionStatus {
2023-02-02 18:08:16 +00:00
/*
* Serial baud rate
2023-02-02 18:08:16 +00:00
*/
2023-02-02 18:13:23 +00:00
uint32 baud = 1;
2023-02-02 18:08:16 +00:00
/*
* Whether the device has an active connection or not
*/
bool is_connected = 2;
2023-02-03 16:10:07 +00:00
}