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
b108cfbf
Commit
b108cfbf
authored
Dec 26, 2024
by
957dd
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update open firefox
parent
c683aa2d
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
15 additions
and
2 deletions
+15
-2
main
main
+0
-0
main.c
main.c
+14
-2
opensh.c
opensh.c
+1
-0
No files found.
main
View file @
b108cfbf
No preview for this file type
main.c
View file @
b108cfbf
...
...
@@ -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
();
//串口初始化
...
...
opensh.c
View file @
b108cfbf
...
...
@@ -6,6 +6,7 @@
char
gwebcam
[
100
];
int
opencamsh
()
{
...
...
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