Commit de752264 authored by 957dd's avatar 957dd

mqtt update

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