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.
 
 
 
 
 
 

50 lines
1.0 KiB

from protobufs_extra.position_proto import *
from protobufs_extra.telemetry_proto import *
LOG_RECORD = [
("string", "message", 1),
("fixed32", "time", 2),
("string", "source", 3),
("int32", "level", 4)#LogRecordLevel
]
LOG_RECORD_LEVEL = {
0: "UNSET",
50: "CRITICAL",
40: "ERROR",
30: "WARNING",
20: "INFO",
10: "DEBUG",
5: "TRACE"
}
#######
QUEUE_STATUS = [
("int32", "res", 1),
("uint32", "free", 2),
("uint32", "maxlen", 3),
("uint32", "mesh_packet_id", 4)
]
#######
DEVICE_METADATA = [
("string", "firmware_version", 1),
("uint32", "device_state_version", 2),
("bool", "canShutdown", 3),
("bool", "hasWifi", 4),
("bool", "hasBluetooth", 5),
("bool", "hasEthernet", 6),
("int32", "role", 7),#
("uint32", "position_flags", 8),
("int32", "hw_model", 9),#
("bool", "hasRemoteHardware", 10),
("bool", "hasPKC", 11),
("uint32", "excluded_modules", 12)
]
########
FILE_INFO = [
("string", "file_name", 1),
("uint32", "size_bytes", 2)
]