增加d331和b562字节数统计;修改状态查询bug

This commit is contained in:
weidong 2023-12-30 08:21:23 +08:00
parent 211cea3a17
commit 38eb913856

View File

@ -32,7 +32,7 @@ public class ApiController {
DeviceChannel deviceChannel = OnlineChannels.INSTANCE.getConfigChannel(deviceId); DeviceChannel deviceChannel = OnlineChannels.INSTANCE.getConfigChannel(deviceId);
if(deviceChannel == null) deviceChannel = OnlineChannels.INSTANCE.getDataChannel(deviceId); if(deviceChannel == null) deviceChannel = OnlineChannels.INSTANCE.getDataChannel(deviceId);
//if(deviceChannel!=null && deviceChannel.isOnline()){ //if(deviceChannel!=null && deviceChannel.isOnline()){
if(deviceChannel!=null){ if(deviceChannel!=null && deviceChannel.isOnline()){
status.put("status", "Online"); status.put("status", "Online");
// send command // send command
ByteBuf buf = Unpooled.buffer(); ByteBuf buf = Unpooled.buffer();