提交 bdc4e45c 编写于 作者: 如梦技术's avatar 如梦技术 🐛

简化 PINGRESP。

上级 7c70a073
......@@ -133,10 +133,7 @@ public class MqttBrokerProcessorImpl implements MqttServerProcessor {
public void processPingReq(ChannelContext context) {
String clientId = context.getBsId();
log.debug("PINGREQ - clientId: {}", clientId);
MqttMessage message = MqttMessageFactory.newMessage(
new MqttFixedHeader(MqttMessageType.PINGRESP, false, MqttQoS.AT_MOST_ONCE, false, 0),
null, null);
Tio.send(context, message);
Tio.send(context, MqttMessage.PINGRESP);
}
@Override
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册