Commit 263b27a2 authored by 957dd's avatar 957dd

update mqtt

parent 478d7e6b
This source diff could not be displayed because it is too large. You can view the blob instead.
No preview for this file type
...@@ -84,14 +84,8 @@ void *Mqtt_onnect(void *arg) ...@@ -84,14 +84,8 @@ void *Mqtt_onnect(void *arg)
mqtt_init();//mqtt初始化 mqtt_init();//mqtt初始化
mqtt_create(mosq);//创建mqtt客户端 mqtt_create(mosq);//创建mqtt客户端
//mqtt_wirte();//mqtt心跳首次发送 //mqtt_wirte();//mqtt心跳首次发送
mqtt_create(mosq) ;
if(mqtt_create(mosq)!=-1)
{
mqtt_cycle(mosq); mqtt_cycle(mosq);
}
mqtt_clean(mosq); mqtt_clean(mosq);
return NULL; return NULL;
} }
......
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