mirror of
https://github.com/meshtastic/protobufs.git
synced 2026-04-20 22:13:55 +00:00
Merge branch 'master' into master
This commit is contained in:
commit
8714947e58
10 changed files with 46 additions and 147 deletions
9
.github/pull_request_template.md
vendored
Normal file
9
.github/pull_request_template.md
vendored
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
<!-- Describe what you are intending to change -->
|
||||
## What does this PR do?
|
||||
<!-- Please remove or replace the issue url -->
|
||||
> [Related Issue](https://github.com/meshtastic/Meshtastic-protobufs/issues/0)
|
||||
|
||||
## Checklist before merging
|
||||
- [ ] All top level messages commented
|
||||
- [ ] All enum members have unique descriptions
|
||||
- [ ] Formatting is consistant with the defined protolint rules
|
||||
|
|
@ -1,7 +1,10 @@
|
|||
*AdminMessage.variant anonymous_oneof:true
|
||||
|
||||
*AdminMessage.set_canned_message_plugin_part1 max_size:200
|
||||
*AdminMessage.set_canned_message_plugin_part2 max_size:200
|
||||
*AdminMessage.set_canned_message_plugin_part3 max_size:200
|
||||
*AdminMessage.set_canned_message_plugin_part4 max_size:200
|
||||
*AdminMessage.set_canned_message_plugin_part5 max_size:200
|
||||
*AdminMessage.set_canned_message_plugin_part1 max_size:201
|
||||
*AdminMessage.set_canned_message_plugin_part2 max_size:201
|
||||
*AdminMessage.set_canned_message_plugin_part3 max_size:201
|
||||
*AdminMessage.set_canned_message_plugin_part4 max_size:201
|
||||
*AdminMessage.get_canned_message_plugin_part1_response max_size:201
|
||||
*AdminMessage.get_canned_message_plugin_part2_response max_size:201
|
||||
*AdminMessage.get_canned_message_plugin_part3_response max_size:201
|
||||
*AdminMessage.get_canned_message_plugin_part4_response max_size:201
|
||||
|
|
|
|||
32
admin.proto
32
admin.proto
|
|
@ -4,7 +4,6 @@ option java_package = "com.geeksville.mesh";
|
|||
option optimize_for = LITE_RUNTIME;
|
||||
option go_package = "github.com/meshtastic/gomeshproto";
|
||||
|
||||
import "cannedmessages.proto";
|
||||
import "channel.proto";
|
||||
import "mesh.proto";
|
||||
import "radioconfig.proto";
|
||||
|
|
@ -105,7 +104,7 @@ message AdminMessage {
|
|||
/*
|
||||
* TODO: REPLACE
|
||||
*/
|
||||
CannedMessagePluginMessagePart1 get_canned_message_plugin_part1_response = 37;
|
||||
string get_canned_message_plugin_part1_response = 37;
|
||||
|
||||
/*
|
||||
* Get the Canned Message Plugin message part2 in the response to this message.
|
||||
|
|
@ -115,7 +114,7 @@ message AdminMessage {
|
|||
/*
|
||||
* TODO: REPLACE
|
||||
*/
|
||||
CannedMessagePluginMessagePart2 get_canned_message_plugin_part2_response = 39;
|
||||
string get_canned_message_plugin_part2_response = 39;
|
||||
|
||||
/*
|
||||
* Get the Canned Message Plugin message part3 in the response to this message.
|
||||
|
|
@ -125,7 +124,7 @@ message AdminMessage {
|
|||
/*
|
||||
* TODO: REPLACE
|
||||
*/
|
||||
CannedMessagePluginMessagePart3 get_canned_message_plugin_part3_response = 41;
|
||||
string get_canned_message_plugin_part3_response = 41;
|
||||
|
||||
/*
|
||||
* Get the Canned Message Plugin message part4 in the response to this message.
|
||||
|
|
@ -135,42 +134,27 @@ message AdminMessage {
|
|||
/*
|
||||
* TODO: REPLACE
|
||||
*/
|
||||
CannedMessagePluginMessagePart4 get_canned_message_plugin_part4_response = 43;
|
||||
|
||||
/*
|
||||
* Get the Canned Message Plugin message part5 in the response to this message.
|
||||
*/
|
||||
bool get_canned_message_plugin_part5_request = 44;
|
||||
|
||||
/*
|
||||
* TODO: REPLACE
|
||||
*/
|
||||
CannedMessagePluginMessagePart5 get_canned_message_plugin_part5_response = 45;
|
||||
string get_canned_message_plugin_part4_response = 43;
|
||||
|
||||
/*
|
||||
* Set the canned message plugin part 1 text.
|
||||
*/
|
||||
CannedMessagePluginMessagePart1 set_canned_message_plugin_part1 = 46;
|
||||
string set_canned_message_plugin_part1 = 44;
|
||||
|
||||
/*
|
||||
* Set the canned message plugin part 2 text.
|
||||
*/
|
||||
CannedMessagePluginMessagePart2 set_canned_message_plugin_part2 = 47;
|
||||
string set_canned_message_plugin_part2 = 45;
|
||||
|
||||
/*
|
||||
* Set the canned message plugin part 3 text.
|
||||
*/
|
||||
CannedMessagePluginMessagePart3 set_canned_message_plugin_part3 = 48;
|
||||
string set_canned_message_plugin_part3 = 46;
|
||||
|
||||
/*
|
||||
* Set the canned message plugin part 4 text.
|
||||
*/
|
||||
CannedMessagePluginMessagePart4 set_canned_message_plugin_part4 = 49;
|
||||
|
||||
/*
|
||||
* Set the canned message plugin part 5 text.
|
||||
*/
|
||||
CannedMessagePluginMessagePart5 set_canned_message_plugin_part5 = 50;
|
||||
string set_canned_message_plugin_part4 = 47;
|
||||
|
||||
/*
|
||||
* Tell the node to shutdown in this many seconds (or <0 to cancel shutdown)
|
||||
|
|
|
|||
|
|
@ -1,5 +1,4 @@
|
|||
*CannedMessagePluginMessagePart1.text max_size:200
|
||||
*CannedMessagePluginMessagePart2.text max_size:200
|
||||
*CannedMessagePluginMessagePart3.text max_size:200
|
||||
*CannedMessagePluginMessagePart4.text max_size:200
|
||||
*CannedMessagePluginMessagePart5.text max_size:200
|
||||
*CannedMessagePluginConfig.messagesPart1 max_size:201
|
||||
*CannedMessagePluginConfig.messagesPart2 max_size:201
|
||||
*CannedMessagePluginConfig.messagesPart3 max_size:201
|
||||
*CannedMessagePluginConfig.messagesPart4 max_size:201
|
||||
|
|
|
|||
|
|
@ -25,62 +25,27 @@ option optimize_for = LITE_RUNTIME;
|
|||
option go_package = "github.com/meshtastic/gomeshproto";
|
||||
|
||||
/*
|
||||
* Canned message plugin part 1
|
||||
* Canned message plugin configuration.
|
||||
*/
|
||||
message CannedMessagePluginMessagePart1 {
|
||||
message CannedMessagePluginConfig {
|
||||
|
||||
/*
|
||||
* Predefined messages for canned message plugin separated by '|' characters.
|
||||
* This is part 1.
|
||||
*/
|
||||
string text = 1;
|
||||
}
|
||||
|
||||
/*
|
||||
* Canned message plugin part 2
|
||||
*/
|
||||
message CannedMessagePluginMessagePart2 {
|
||||
string messagesPart1 = 11;
|
||||
|
||||
/*
|
||||
* Predefined messages for canned message plugin separated by '|' characters.
|
||||
* This is part 2.
|
||||
* TODO: REPLACE
|
||||
*/
|
||||
string text = 1;
|
||||
}
|
||||
|
||||
/*
|
||||
* Canned message plugin part 3
|
||||
*/
|
||||
message CannedMessagePluginMessagePart3 {
|
||||
string messagesPart2 = 12;
|
||||
|
||||
/*
|
||||
* Predefined messages for canned message plugin separated by '|' characters.
|
||||
* This is part 3.
|
||||
* TODO: REPLACE
|
||||
*/
|
||||
string text = 1;
|
||||
}
|
||||
|
||||
/*
|
||||
* Canned message plugin part 4
|
||||
*/
|
||||
message CannedMessagePluginMessagePart4 {
|
||||
string messagesPart3 = 13;
|
||||
|
||||
/*
|
||||
* Predefined messages for canned message plugin separated by '|' characters.
|
||||
* This is part 4.
|
||||
* TODO: REPLACE
|
||||
*/
|
||||
string text = 1;
|
||||
string messagesPart4 = 14;
|
||||
}
|
||||
|
||||
/*
|
||||
* Canned message plugin part 5
|
||||
*/
|
||||
message CannedMessagePluginMessagePart5 {
|
||||
|
||||
/*
|
||||
* Predefined messages for canned message plugin separated by '|' characters.
|
||||
* This is part 5.
|
||||
*/
|
||||
string text = 1;
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -7,11 +7,5 @@
|
|||
# FIXME - max_count is actually 32 but we save/load this as one long string of preencoded MeshPacket bytes - not a big array in RAM
|
||||
*DeviceState.receive_queue max_count:1
|
||||
|
||||
*DeviceState.canned_message_plugin_message_part1 max_size:200
|
||||
*DeviceState.canned_message_plugin_message_part2 max_size:200
|
||||
*DeviceState.canned_message_plugin_message_part3 max_size:200
|
||||
*DeviceState.canned_message_plugin_message_part4 max_size:200
|
||||
*DeviceState.canned_message_plugin_message_part5 max_size:200
|
||||
|
||||
*ChannelFile.channels max_count:8
|
||||
|
||||
|
|
|
|||
|
|
@ -44,11 +44,6 @@ message DeviceState {
|
|||
*/
|
||||
repeated MeshPacket receive_queue = 5;
|
||||
|
||||
/*
|
||||
* Group Info
|
||||
*/
|
||||
GroupInfo group_info = 6;
|
||||
|
||||
/*
|
||||
* A version integer used to invalidate old save files when we make
|
||||
* incompatible changes This integer is set at build time and is private to
|
||||
|
|
@ -74,31 +69,6 @@ message DeviceState {
|
|||
*/
|
||||
bool did_gps_reset = 11;
|
||||
|
||||
/*
|
||||
* Canned Message Plugin message part1.
|
||||
*/
|
||||
string canned_message_plugin_message_part1 = 13;
|
||||
|
||||
/*
|
||||
* Canned Message Plugin message part2.
|
||||
*/
|
||||
string canned_message_plugin_message_part2 = 14;
|
||||
|
||||
/*
|
||||
* Canned Message Plugin message part3.
|
||||
*/
|
||||
string canned_message_plugin_message_part3 = 15;
|
||||
|
||||
/*
|
||||
* Canned Message Plugin message part4.
|
||||
*/
|
||||
string canned_message_plugin_message_part4 = 16;
|
||||
|
||||
/*
|
||||
* Canned Message Plugin message part5.
|
||||
*/
|
||||
string canned_message_plugin_message_part5 = 17;
|
||||
|
||||
}
|
||||
|
||||
/*
|
||||
|
|
|
|||
22
mesh.proto
22
mesh.proto
|
|
@ -718,12 +718,6 @@ message Data {
|
|||
* a message a heart or poop emoji.
|
||||
*/
|
||||
bool is_tapback = 8;
|
||||
|
||||
/*
|
||||
* Defaults to false. If true, then what is in the payload should be treated as an emoji like giving
|
||||
* a message a heart or poop emoji.
|
||||
*/
|
||||
uint32 group_id = 9;
|
||||
}
|
||||
|
||||
/*
|
||||
|
|
@ -1104,18 +1098,6 @@ enum CriticalErrorCode {
|
|||
RadioSpiBug = 11;
|
||||
}
|
||||
|
||||
/*
|
||||
* GroupInfo for group chats like #FoodFreaks and #CoolPeopleOnly
|
||||
*/
|
||||
message GroupInfo {
|
||||
|
||||
/*
|
||||
* TODO: REPLACE
|
||||
*/
|
||||
repeated string group = 1;
|
||||
}
|
||||
|
||||
|
||||
/*
|
||||
* Unique local debugging info for this node
|
||||
* Note: we don't include position or the user info, because that will come in the
|
||||
|
|
@ -1371,10 +1353,6 @@ message FromRadio {
|
|||
*/
|
||||
bool rebooted = 9;
|
||||
|
||||
/*
|
||||
* Groups
|
||||
*/
|
||||
GroupInfo groups = 12;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -93,11 +93,11 @@ enum PortNum {
|
|||
IP_TUNNEL_APP = 33;
|
||||
|
||||
/*
|
||||
* Used for managing chat groups
|
||||
* Used for the router plugin
|
||||
*/
|
||||
GROUP_APP = 34;
|
||||
ROUTER_APP = 34;
|
||||
|
||||
/*
|
||||
/*
|
||||
* Provides a hardware serial interface to send and receive from the Meshtastic network.
|
||||
* Connect to the RX/TX pins of a device with 38400 8N1. Packets received from the Meshtastic
|
||||
* network is forwarded to the RX pin while sending a packet to TX will go out to the Mesh network.
|
||||
|
|
|
|||
|
|
@ -658,6 +658,11 @@ message RadioConfig {
|
|||
*/
|
||||
uint32 serialplugin_txd = 123;
|
||||
|
||||
/*
|
||||
* TODO: REPLACE
|
||||
*/
|
||||
uint32 serialplugin_baud = 176;
|
||||
|
||||
/*
|
||||
* TODO: REPLACE
|
||||
*/
|
||||
|
|
@ -946,14 +951,6 @@ message RadioConfig {
|
|||
*/
|
||||
string canned_message_plugin_allow_input_source = 171;
|
||||
|
||||
/*
|
||||
* Predefined messages for CannedMessagePlugin separated by '|' characters.
|
||||
* Note: Split out the messages out to their own messages because we want to store 1,000 characters.
|
||||
* and the entire message must fit within 256 bytes.
|
||||
* Not sure if we should deprecate this or just remove it since we're in dev phase.
|
||||
*/
|
||||
string canned_message_plugin_messages = 172 [deprecated = true];
|
||||
|
||||
/*
|
||||
* CannedMessagePlugin also sends a bell character with the messages.
|
||||
* ExternalNotificationPlugin can benefit from this feature.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue