Commit 2fc4bc5b authored by 王夏晖's avatar 王夏晖

Merge branch 'develop' of http://103.249.252.28:90/wangxiahui/zhny into 完善项目信息列表

parents c3d18677 cc1c4275
......@@ -162,7 +162,7 @@ public class MqttClient {
MQTT mqtt=new MQTT();
//MQTT设置说明
mqtt.setHost("tcp://139.199.98.105:1883");
mqtt.setHost("tcp://172.21.0.6:1883");
mqtt.setClientId("876543210"); //用于设置客户端会话的ID。在setCleanSession(false);被调用时,MQTT服务器利用该ID获得相应的会话。此ID应少于23个字符,默认根据本机地址、端口和时间自动生成
mqtt.setCleanSession(false); //若设为false,MQTT服务器将持久化客户端会话的主体订阅和ACK位置,默认为true
mqtt.setKeepAlive((short) 60);//定义客户端传来消息的最大时间间隔秒数,服务器可以据此判断与客户端的连接是否已经断开,从而避免TCP/IP超时的长时间等待
......@@ -296,10 +296,10 @@ public class MqttClient {
while(true)
{
}
// while(true)
// {
//
// }
} catch (Exception e) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment