| 
									
										
										
										
											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 | 
					
						
							| 
									
										
										
										
											2024-08-05 03:36:33 +00:00
										 |  |  | *public_key max_size:32 # public key | 
					
						
							| 
									
										
										
										
											2020-03-02 17:47:10 +00:00
										 |  |  | 
 | 
					
						
							|  |  |  | *User.long_name max_size:40 | 
					
						
							|  |  |  | *User.short_name max_size:5 | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2020-05-11 22:40:04 +00:00
										 |  |  | *RouteDiscovery.route max_count:8 | 
					
						
							| 
									
										
										
										
											2024-08-17 12:27:32 +00:00
										 |  |  | *RouteDiscovery.snr_towards max_count:8 | 
					
						
							|  |  |  | *RouteDiscovery.snr_towards int_size:8 | 
					
						
							|  |  |  | *RouteDiscovery.route_back max_count:8 | 
					
						
							|  |  |  | *RouteDiscovery.snr_back max_count:8 | 
					
						
							|  |  |  | *RouteDiscovery.snr_back int_size:8 | 
					
						
							| 
									
										
										
										
											2020-05-11 22:40:04 +00:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2021-05-28 02:58:51 +00: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 02:25:29 +00:00
										 |  |  | *Data.payload max_size:237 | 
					
						
							| 
									
										
										
										
											2020-03-02 17:47:10 +00:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2023-03-25 11:03:40 +00:00
										 |  |  | *NodeInfo.channel int_size:8 | 
					
						
							| 
									
										
										
										
											2024-03-02 14:00:26 +00:00
										 |  |  | *NodeInfo.hops_away int_size:8 | 
					
						
							| 
									
										
										
										
											2023-03-25 11:03:40 +00:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2021-04-16 03:50:02 +00:00
										 |  |  | # Big enough for 1.2.28.568032c-d | 
					
						
							|  |  |  | *MyNodeInfo.firmware_version max_size:18 | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2022-03-03 02:48:05 +00:00
										 |  |  | *MyNodeInfo.air_period_tx       max_count:8 | 
					
						
							|  |  |  | *MyNodeInfo.air_period_rx       max_count:8 | 
					
						
							| 
									
										
										
										
											2022-03-01 06:02:05 +00:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											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 | 
					
						
							| 
									
										
										
										
											2022-09-07 01:34:18 +00:00
										 |  |  | *MeshPacket.payload_variant anonymous_oneof:true | 
					
						
							| 
									
										
										
										
											2021-02-22 02:25:29 +00:00
										 |  |  | *MeshPacket.hop_limit int_size:8 | 
					
						
							| 
									
										
										
										
											2024-02-28 18:13:29 +00:00
										 |  |  | *MeshPacket.hop_start int_size:8 | 
					
						
							| 
									
										
										
										
											2021-02-25 12:35:51 +00:00
										 |  |  | *MeshPacket.channel int_size:8 | 
					
						
							| 
									
										
										
										
											2020-05-10 00:07:47 +00:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2022-10-07 23:51:42 +00:00
										 |  |  | *QueueStatus.res int_size:8 | 
					
						
							|  |  |  | *QueueStatus.free int_size:8 | 
					
						
							|  |  |  | *QueueStatus.maxlen int_size:8 | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2022-09-07 01:34:18 +00:00
										 |  |  | *ToRadio.payload_variant anonymous_oneof:true | 
					
						
							| 
									
										
										
										
											2021-02-10 08:18:06 +00:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2022-09-07 01:34:18 +00:00
										 |  |  | *FromRadio.payload_variant anonymous_oneof:true | 
					
						
							| 
									
										
										
										
											2020-05-12 20:34:44 +00:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2021-02-17 05:05:46 +00:00
										 |  |  | *Routing.variant anonymous_oneof:true | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2024-06-28 02:50:59 +00:00
										 |  |  | *LogRecord.message max_size:384 | 
					
						
							|  |  |  | *LogRecord.source max_size:32 | 
					
						
							| 
									
										
										
										
											2020-12-27 02:55:13 +00:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2024-06-25 00:37:52 +00:00
										 |  |  | *FileInfo.file_name max_size:228 | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2024-08-08 11:52:25 +00:00
										 |  |  | *ClientNotification.message max_size:400 | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2020-03-02 17:47:10 +00:00
										 |  |  | # MyMessage.name         max_size:40  | 
					
						
							|  |  |  | # or fixed_length or fixed_count, or max_count | 
					
						
							| 
									
										
										
										
											2022-05-12 13:11:57 +00:00
										 |  |  | 
 | 
					
						
							|  |  |  | #This value may want to be a few bytes smaller to compensate for the parent fields. | 
					
						
							| 
									
										
										
										
											2022-08-09 02:06:15 +00:00
										 |  |  | *Compressed.data max_size:237 | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2022-08-19 23:39:31 +00:00
										 |  |  | *Waypoint.name         max_size:30 | 
					
						
							| 
									
										
										
										
											2023-03-06 20:08:24 +00:00
										 |  |  | *Waypoint.description  max_size:100 | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2023-04-08 13:57:37 +00:00
										 |  |  | *NeighborInfo.neighbors max_count:10 | 
					
						
							| 
									
										
										
										
											2023-05-15 20:12:41 +00:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2023-06-30 12:51:51 +00:00
										 |  |  | *DeviceMetadata.firmware_version max_size:18 | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2023-07-01 13:53:13 +00:00
										 |  |  | *MqttClientProxyMessage.topic max_size:60 | 
					
						
							|  |  |  | *MqttClientProxyMessage.data max_size:435 | 
					
						
							| 
									
										
										
										
											2024-02-02 17:29:38 +00:00
										 |  |  | *MqttClientProxyMessage.text max_size:435 | 
					
						
							| 
									
										
										
										
											2024-06-03 19:57:21 +00:00
										 |  |  | 
 | 
					
						
							|  |  |  | *ChunkedPayload.chunk_count int_size:16 | 
					
						
							|  |  |  | *ChunkedPayload.chunk_index int_size:16 | 
					
						
							| 
									
										
										
										
											2024-08-17 12:27:32 +00:00
										 |  |  | *ChunkedPayload.payload_chunk max_size:228 |