3 changed files with 79 additions and 1 deletions
@ -0,0 +1,52 @@ |
|||
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) |
|||
] |
|||
|
|||
######### |
|||
TELEMETRY_SCHEME = [ |
|||
("fixed32", "time", 1) |
|||
] |
|||
Loading…
Reference in new issue