Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
C
car-controlserver
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wenzhongjian
car-controlserver
Commits
2555dc0a
Commit
2555dc0a
authored
Dec 27, 2024
by
957dd
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
optimize open firefox
parent
3c56c6dd
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
6 deletions
+9
-6
main
main
+0
-0
main.c
main.c
+9
-6
No files found.
main
View file @
2555dc0a
No preview for this file type
main.c
View file @
2555dc0a
...
...
@@ -47,17 +47,18 @@ void *AppExit(void *arg)//2s程序,出现意外2s自动停止
}
void
*
Mqttbeat
(
void
*
arg
)
{
{
printf
(
"Mqttbeat start
\n
"
);
Delay_Ms
(
40
,
0
);
Delay_Ms
(
30
,
0
);
refresh_cam
();
Delay_Ms
(
5
,
0
);
refresh_cam
();
Delay_Ms
(
5
,
0
);
refresh_cam
();
while
(
1
)
{
ipaddr
();
//获取ip
Delay_Ms
(
3
,
0
);
recam_count
++
;
mqtt_wirte
();
//心跳,3s一个
}
...
...
@@ -102,8 +103,10 @@ void *Mqtt_onnect(void *arg)
int
main
(
int
argc
,
char
*
argv
[])
{
system
(
"pkill firefox"
);
Delay_Ms
(
3
0
,
0
);
Delay_Ms
(
2
0
,
0
);
reconnect_4g
();
Delay_Ms
(
10
,
0
);
gStart
=
time
(
NULL
);
//开始时间戳
serial_Init
();
//串口初始化
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment