diff --git a/app/src/main/proto/mesh.options b/app/src/main/proto/mesh.options index 97b88dfc..a35911a9 100644 --- a/app/src/main/proto/mesh.options +++ b/app/src/main/proto/mesh.options @@ -11,8 +11,8 @@ *DeviceState.node_db max_count:32 *DeviceState.receive_queue max_count:32 -# FIXME, something more like 200? And do fragmentation and reassembly (for larger payloads) at the Android layer, not the esp32 layer. -*Data.payload max_size:100 +# FIXME, max out based on total SubPacket size And do fragmentation and reassembly (for larger payloads) at the Android layer, not the esp32 layer. +*Data.payload max_size:200 # 256 bit psk key *RadioConfig.psk max_size:32 diff --git a/app/src/main/proto/mesh.proto b/app/src/main/proto/mesh.proto index fc7e8b13..7ad8ae2c 100644 --- a/app/src/main/proto/mesh.proto +++ b/app/src/main/proto/mesh.proto @@ -241,10 +241,29 @@ message DeviceState { /// Tells the phone what our node number is, can be -1 if we've not yet joined a mesh. MyNodeInfo my_node = 2; - repeated NodeInfo node_db = 3; + /// My owner info + User owner = 3; + + repeated NodeInfo node_db = 4; /// Received packets saved for delivery to the phone - repeated MeshPacket receive_queue = 4; + repeated MeshPacket receive_queue = 5; + + enum Version { + option allow_alias = true; + + /// default value for old files before we added version. + Unset = 0; + + /// We bump up the integer values in this enum to indicate minimum levels of encodings for saved files + /// if your file is below the Minimum you should discard it. + Minimum = 1; + + /// The current value we are using for saved files + Current = 1; + }; + + Version version = 6; } // packets from the radio to the phone will appear on the fromRadio characteristic. It will support