update 电单车协议

This commit is contained in:
Guoqs
2024-09-02 19:55:02 +08:00
parent a41264d1b9
commit 256e358be5
16 changed files with 245 additions and 115 deletions

View File

@@ -55,6 +55,7 @@ public class PileChannelEntity {
* @return
*/
public static ChannelHandlerContext getChannelByPileSn(String pileSn) {
output();
return manager.get(pileSn);
}
@@ -78,7 +79,7 @@ public class PileChannelEntity {
public static void output() {
for (HashMap.Entry<String, ChannelHandlerContext> entry : manager.entrySet()) {
System.out.println("pileSn:" + entry.getKey() +
",ChannelId:" + entry.getValue().channel().id().asLongText());
",ChannelId:" + entry.getValue().channel().id().asShortText());
}
}