Commit 3c56c6dd authored by 957dd's avatar 957dd

Update main.c

parent 26f505b7
......@@ -48,10 +48,11 @@ void *AppExit(void *arg)//2s程序,出现意外2s自动停止
void *Mqttbeat(void *arg)
{
int recam_count=0;
printf("Mqttbeat start\n");
Delay_Ms(10,0);
Delay_Ms(40,0);
refresh_cam();
while(1)
{
ipaddr();//获取ip
......@@ -59,13 +60,6 @@ void *Mqttbeat(void *arg)
recam_count++;
mqtt_wirte();//心跳,3s一个
if(recam_count==10)
{
refresh_cam();
}else if(recam_count>10)
{
recam_count=31;
}
}
......
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