Commit 2555dc0a authored by 957dd's avatar 957dd

optimize open firefox

parent 3c56c6dd
No preview for this file type
...@@ -47,17 +47,18 @@ void *AppExit(void *arg)//2s程序,出现意外2s自动停止 ...@@ -47,17 +47,18 @@ void *AppExit(void *arg)//2s程序,出现意外2s自动停止
} }
void *Mqttbeat(void *arg) void *Mqttbeat(void *arg)
{ {
printf("Mqttbeat start\n"); printf("Mqttbeat start\n");
Delay_Ms(30,0);
Delay_Ms(40,0); refresh_cam();
Delay_Ms(5,0);
refresh_cam();
Delay_Ms(5,0);
refresh_cam(); refresh_cam();
while(1) while(1)
{ {
ipaddr();//获取ip ipaddr();//获取ip
Delay_Ms(3,0); Delay_Ms(3,0);
recam_count++;
mqtt_wirte();//心跳,3s一个 mqtt_wirte();//心跳,3s一个
} }
...@@ -102,8 +103,10 @@ void *Mqtt_onnect(void *arg) ...@@ -102,8 +103,10 @@ void *Mqtt_onnect(void *arg)
int main(int argc, char *argv[]) { int main(int argc, char *argv[]) {
system("pkill firefox"); system("pkill firefox");
Delay_Ms(30,0); Delay_Ms(20,0);
reconnect_4g(); reconnect_4g();
Delay_Ms(10,0);
gStart=time(NULL);//开始时间戳 gStart=time(NULL);//开始时间戳
serial_Init();//串口初始化 serial_Init();//串口初始化
......
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