Commit b108cfbf authored by 957dd's avatar 957dd

update open firefox

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