You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

46 lines
1.3 KiB

DEVICE_METRICS_SCHEME = [
("scalar", "battary_level", 1, "uint32"),
("scalar", "voltage", 2, "float"),
("scalar", "channel_utilization", 3, "float"),
("scalar", "air_util_tx", 4, "float"),
("scalar", "uptime_seconds", 5, "uint32")
]
USER_LITE_SCHEME = [
#("bytes", "macaddr", 1),
("string", "long_name", 2),
("string", "short_name", 3),
#("int32", "hw_model", 4),
#("bool", "is_licensed", 5),
#("int32", "role", 6),
#("bytes", "public_key", 7),
#("scalar", "is_unmessagable", 9, "bool")
]
POSITION_LITE_SCHEME = [
("sfixed32", "latitude_i", 1),
("sfixed32", "longitude_i", 2),
("int32", "altitude", 3),
("fixed32", "time", 4),
("int32", "location_source", 5)
]
NODE_INFO_LITE_SCHEME = [
("string", "num", 1),
("string", "long_name", 2),
("string", "short_name", 3),
#2 long_name 2
#3 short_name 3
#(USER_LITE_SCHEME, "user", 2),
#(POSITION_LITE_SCHEME, "position", 3),
("float", "snr", 4),
("fixed32", "last_heard", 5),
(DEVICE_METRICS_SCHEME, "device_metrics", 6),
("uint32", "channel", 7),
("bool", "via_mqtt", 8),
("scalar", "hops_away", 9, "uint32"),#верняк
("bool", "is_favorite", 10),
("bool", "is_ignored", 11),
("uint32", "next_hop", 12),
("uint32", "bitfield", 13)
]