添加设备查询和设备更新接口
This commit is contained in:
@@ -111,4 +111,9 @@ public class Session {
|
||||
",ip=" + channel.remoteAddress() +
|
||||
']';
|
||||
}
|
||||
|
||||
public void unregister() {
|
||||
channel.close();
|
||||
SessionManager.INSTANCE.remove(this.devId);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -124,4 +124,7 @@ public enum SessionManager {
|
||||
return String.join("_", devId.replaceFirst("^0*", ""), respId, requestNo.toString());
|
||||
}
|
||||
|
||||
public void remove(String devId) {
|
||||
sessionMap.remove(devId);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user