2020-03-02 09:47:10 -08: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
|
|
|
|
|
|
2020-05-11 15:40:04 -07:00
|
|
|
*RouteDiscovery.route max_count:8
|
|
|
|
|
|
2021-05-28 10:58:51 +08:00
|
|
|
# note: this payload length is ONLY the bytes that are sent inside of the Data protobuf (excluding protobuf overhead). The 16 byte header is
|
|
|
|
|
# outside of this envelope
|
2021-02-22 10:25:29 +08:00
|
|
|
*Data.payload max_size:237
|
2020-03-02 09:47:10 -08:00
|
|
|
|
2021-04-16 11:50:02 +08:00
|
|
|
# Big enough for 1.2.28.568032c-d
|
|
|
|
|
*MyNodeInfo.firmware_version max_size:18
|
|
|
|
|
|
2020-03-03 08:23:20 -08:00
|
|
|
*MyNodeInfo.region max_size:12
|
|
|
|
|
|
2020-05-09 17:07:47 -07: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
|
2021-02-10 16:18:06 +08:00
|
|
|
*MeshPacket.payloadVariant anonymous_oneof:true
|
2021-02-22 10:25:29 +08:00
|
|
|
*MeshPacket.hop_limit int_size:8
|
2021-02-25 20:35:51 +08:00
|
|
|
*MeshPacket.channel int_size:8
|
2020-05-09 17:07:47 -07:00
|
|
|
|
2021-02-10 16:18:06 +08:00
|
|
|
*ToRadio.payloadVariant anonymous_oneof:true
|
|
|
|
|
|
|
|
|
|
*FromRadio.payloadVariant anonymous_oneof:true
|
2020-05-12 13:34:44 -07:00
|
|
|
|
2021-02-17 13:05:46 +08:00
|
|
|
*Routing.variant anonymous_oneof:true
|
|
|
|
|
|
2020-12-27 10:55:13 +08:00
|
|
|
*LogRecord.message max_size:64
|
|
|
|
|
*LogRecord.source max_size:8
|
|
|
|
|
|
2020-03-02 09:47:10 -08:00
|
|
|
# MyMessage.name max_size:40
|
|
|
|
|
# or fixed_length or fixed_count, or max_count
|
|
|
|
|
|
2021-12-07 11:46:21 -08:00
|
|
|
*MyNodeInfo.air_period_tx max_count:24
|
|
|
|
|
*MyNodeInfo.air_period_rx max_count:24
|