mirror of
https://github.com/meshtastic/protobufs.git
synced 2026-04-20 22:13:55 +00:00
Move metadata into mesh.proto
This commit is contained in:
parent
34a944553f
commit
6cbbf01d13
4 changed files with 55 additions and 64 deletions
|
|
@ -1 +0,0 @@
|
|||
*DeviceMetadata.firmware_version max_size:18
|
||||
|
|
@ -1,62 +0,0 @@
|
|||
syntax = "proto3";
|
||||
|
||||
package meshtastic;
|
||||
|
||||
option java_package = "com.geeksville.mesh";
|
||||
option java_outer_classname = "DeviceMetadataProtos";
|
||||
option go_package = "github.com/meshtastic/go/generated";
|
||||
option csharp_namespace = "Meshtastic.Protobufs";
|
||||
option swift_prefix = "";
|
||||
|
||||
import "meshtastic/config.proto";
|
||||
import "meshtastic/mesh.proto";
|
||||
|
||||
/*
|
||||
* Device metadata response
|
||||
*/
|
||||
message DeviceMetadata {
|
||||
/*
|
||||
* Device firmware version string
|
||||
*/
|
||||
string firmware_version = 1;
|
||||
|
||||
/*
|
||||
* Device state version
|
||||
*/
|
||||
uint32 device_state_version = 2;
|
||||
|
||||
/*
|
||||
* Indicates whether the device can shutdown CPU natively or via power management chip
|
||||
*/
|
||||
bool canShutdown = 3;
|
||||
|
||||
/*
|
||||
* Indicates that the device has native wifi capability
|
||||
*/
|
||||
bool hasWifi = 4;
|
||||
|
||||
/*
|
||||
* Indicates that the device has native bluetooth capability
|
||||
*/
|
||||
bool hasBluetooth = 5;
|
||||
|
||||
/*
|
||||
* Indicates that the device has an ethernet peripheral
|
||||
*/
|
||||
bool hasEthernet = 6;
|
||||
|
||||
/*
|
||||
* Indicates that the device's role in the mesh
|
||||
*/
|
||||
Config.DeviceConfig.Role role = 7;
|
||||
|
||||
/*
|
||||
* Indicates the device's current enabled position flags
|
||||
*/
|
||||
uint32 position_flags = 8;
|
||||
|
||||
/*
|
||||
* Device hardware model
|
||||
*/
|
||||
HardwareModel hw_model = 9;
|
||||
}
|
||||
|
|
@ -47,4 +47,6 @@
|
|||
*Compressed.data max_size:237
|
||||
|
||||
*Waypoint.name max_size:30
|
||||
*Waypoint.description max_size:100
|
||||
*Waypoint.description max_size:100
|
||||
|
||||
*DeviceMetadata.firmware_version max_size:18
|
||||
|
|
|
|||
|
|
@ -15,6 +15,8 @@ import "meshtastic/portnums.proto";
|
|||
import "meshtastic/telemetry.proto";
|
||||
import "meshtastic/xmodem.proto";
|
||||
import "meshtastic/device_metadata.proto";
|
||||
import "meshtastic/role.proto";
|
||||
|
||||
|
||||
/*
|
||||
* a gps position
|
||||
|
|
@ -1372,3 +1374,53 @@ message Compressed {
|
|||
*/
|
||||
bytes data = 2;
|
||||
}
|
||||
|
||||
/*
|
||||
* Device metadata response
|
||||
*/
|
||||
message DeviceMetadata {
|
||||
/*
|
||||
* Device firmware version string
|
||||
*/
|
||||
string firmware_version = 1;
|
||||
|
||||
/*
|
||||
* Device state version
|
||||
*/
|
||||
uint32 device_state_version = 2;
|
||||
|
||||
/*
|
||||
* Indicates whether the device can shutdown CPU natively or via power management chip
|
||||
*/
|
||||
bool canShutdown = 3;
|
||||
|
||||
/*
|
||||
* Indicates that the device has native wifi capability
|
||||
*/
|
||||
bool hasWifi = 4;
|
||||
|
||||
/*
|
||||
* Indicates that the device has native bluetooth capability
|
||||
*/
|
||||
bool hasBluetooth = 5;
|
||||
|
||||
/*
|
||||
* Indicates that the device has an ethernet peripheral
|
||||
*/
|
||||
bool hasEthernet = 6;
|
||||
|
||||
/*
|
||||
* Indicates that the device's role in the mesh
|
||||
*/
|
||||
Config.DeviceConfig.Role role = 7;
|
||||
|
||||
/*
|
||||
* Indicates the device's current enabled position flags
|
||||
*/
|
||||
uint32 position_flags = 8;
|
||||
|
||||
/*
|
||||
* Device hardware model
|
||||
*/
|
||||
HardwareModel hw_model = 9;
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue