设备行为

This commit is contained in:
2025-08-02 09:18:31 +08:00
parent 99355e05b8
commit 8435a5b0e6
3 changed files with 25 additions and 11 deletions

View File

@ -8,11 +8,18 @@ public enum InstructType6170 {
EQUIPMENT_REPORTING(0, "设备上报"),
LIGHT_MODE(1, "灯光模式"),
UNIT_INFO(2, "单位/姓名/职位"),
/**
* 设备信息
* 单位/姓名/职位
*/
UNIT_INFO(2, "设备信息"),
BOOT_IMAGE(3, "开机图片"),
LASER_LIGHT(4, "激光灯"),
BRIGHTNESS(5, "亮度调节"),
LOCATION_DATA(11, "定位数据");
LOCATION_DATA(11, "定位数据"),
UNKNOWN(-1, "未知操作");
private final int code;
private final String description;
@ -36,7 +43,8 @@ public enum InstructType6170 {
return type;
}
}
throw new IllegalArgumentException("未知的指令类型代码: " + code);
// throw new IllegalArgumentException("未知的指令类型代码: " + code);
return UNKNOWN;
}
}