2020-03-02 17:47:10 +00:00
|
|
|
# options for nanopb
|
|
|
|
# https://jpa.kapsi.fi/nanopb/docs/reference.html#proto-file-options
|
|
|
|
|
|
|
|
*macaddr max_size:6 fixed_length:true # macaddrs
|
|
|
|
*id max_size:16 # node id strings
|
|
|
|
|
|
|
|
*User.long_name max_size:40
|
|
|
|
*User.short_name max_size:5
|
|
|
|
|
|
|
|
# FIXME pick a higher number someday? or do dynamic alloc in nanopb?
|
|
|
|
*DeviceState.node_db max_count:32
|
2020-06-16 22:25:54 +00:00
|
|
|
|
|
|
|
# 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
|
2020-03-02 17:47:10 +00:00
|
|
|
|
2020-05-11 22:40:04 +00:00
|
|
|
*RouteDiscovery.route max_count:8
|
|
|
|
|
2020-03-02 17:47:10 +00:00
|
|
|
# FIXME, max out based on total SubPacket size And do fragmentation and reassembly (for larger payloads) at the Android layer, not the esp32 layer.
|
|
|
|
# note: this payload length is ONLY the bytes that are sent inside of the radiohead packet
|
2020-06-06 20:15:15 +00:00
|
|
|
*Data.payload max_size:240
|
2020-03-02 17:47:10 +00:00
|
|
|
|
2020-06-21 21:11:09 +00:00
|
|
|
*UserPreferences.wifi_ssid max_size:33
|
|
|
|
*UserPreferences.wifi_password max_size:64
|
2020-09-19 18:10:50 +00:00
|
|
|
*UserPreferences.region max_size:6
|
2020-06-21 21:11:09 +00:00
|
|
|
|
2020-05-10 02:06:45 +00:00
|
|
|
# 256 bit or 128 bit psk key
|
|
|
|
*ChannelSettings.psk max_size:32
|
2020-03-02 17:47:10 +00:00
|
|
|
*ChannelSettings.name max_size:12
|
|
|
|
|
2020-12-17 02:31:40 +00:00
|
|
|
*RadioConfig.secondary_channels max_count:4
|
|
|
|
|
2020-03-03 16:23:20 +00:00
|
|
|
*MyNodeInfo.firmware_version max_size:12
|
2020-03-31 02:33:46 +00:00
|
|
|
*MyNodeInfo.hw_model max_size:16
|
2020-03-03 16:23:20 +00:00
|
|
|
*MyNodeInfo.region max_size:12
|
|
|
|
|
2020-04-20 23:15:52 +00:00
|
|
|
*DebugString.message max_size:256
|
|
|
|
|
2020-05-10 00:07:47 +00:00
|
|
|
# Note: the actual limit (because of header bytes) on the size of encrypted payloads is 251 bytes, but I use 256
|
|
|
|
# here because we might need to fill with zeros for padding to encryption block size (16 bytes per block)
|
|
|
|
*MeshPacket.encrypted max_size:256
|
|
|
|
*MeshPacket.payload anonymous_oneof:true
|
|
|
|
|
2020-05-12 20:34:44 +00:00
|
|
|
*SubPacket.payload anonymous_oneof:true
|
|
|
|
|
2020-05-23 16:24:54 +00:00
|
|
|
# Max of three ignored nodes for our testing
|
|
|
|
*UserPreferences.ignore_incoming max_count:3
|
|
|
|
|
2020-03-02 17:47:10 +00:00
|
|
|
# MyMessage.name max_size:40
|
|
|
|
# or fixed_length or fixed_count, or max_count
|
|
|
|
|