mq异常日志 1
This commit is contained in:
@@ -229,11 +229,11 @@ public class MqttServerHandler extends ChannelInboundHandlerAdapter {
|
||||
if ("con".equals(topic)) {
|
||||
// 延迟 2 秒执行
|
||||
SCHEDULER.schedule(() -> sendResponseToClient(ctx, "处理成功"), 2, TimeUnit.SECONDS);
|
||||
// try {
|
||||
// deviceStatusManager.sendMqMsg(content);
|
||||
// } catch (Exception e) {
|
||||
// log.error("发送消息异常:{}", e.getMessage());
|
||||
// }
|
||||
try {
|
||||
deviceStatusManager.sendMqMsg(content);
|
||||
} catch (Exception e) {
|
||||
log.error("发送消息异常:{}", e.getMessage());
|
||||
}
|
||||
}
|
||||
|
||||
// 按QoS等级回复确认(重点实现QoS2)
|
||||
|
||||
Reference in New Issue
Block a user