添加网关名称字段,表示是从哪个网关接入的

This commit is contained in:
孙小云 2026-01-16 13:59:52 +08:00
parent 18777f9cdd
commit 6292b3f9b6
1 changed files with 7 additions and 0 deletions

View File

@ -22,6 +22,13 @@ public class DeviceAttributes {
value -> value != null ? value.toString() : null
);
// 网关名称 - String
public static final AttributeKey<String> GATEWAY = AttributeKey.of(
"gateway",
String.class,
value -> value != null ? value.toString() : null
);
// 机场SN - String
public static final AttributeKey<String> DOCK_SN = AttributeKey.of(
"dock_sn",