提交 a7eb58dc 编写于 作者: 浅梦2013's avatar 浅梦2013

mica-mqtt-spring-boot-starter 完善。

上级 2fc9dcbe
......@@ -202,6 +202,15 @@ public class MqttClientTemplate implements InitializingBean, DisposableBean, Ord
return client.getContext();
}
/**
* 判断客户端跟服务端是否断开连接
*
* @return 是否断连
*/
public boolean isDisconnected() {
return client.isDisconnected();
}
/**
* 获取 MqttClient
*
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册