add: alert.py alertcode

This commit is contained in:
JackSun-qc 2022-03-09 09:55:45 +08:00
parent fc3f549fa9
commit 54ee755183

View File

@ -6,9 +6,11 @@ from usr.logging import getLogger
log = getLogger(__name__) log = getLogger(__name__)
# TODO: Use objec model code?
ALERTCODE = { ALERTCODE = {
30001: 'fault_alert', 30001: 'fault_alert',
30002: 'low_power_alert', 30002: 'low_power_alert',
30003: 'over_speed_alert',
30004: 'sim_out_alert', 30004: 'sim_out_alert',
30005: 'disassemble_alert', 30005: 'disassemble_alert',
# 30006: 'shock_alert', # TODO: NOT USED # 30006: 'shock_alert', # TODO: NOT USED