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
de752264
Commit
de752264
authored
Dec 24, 2024
by
957dd
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mqtt update
parent
3c724517
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
5 deletions
+6
-5
log.txt
log/log.txt
+0
-0
main
main
+0
-0
main.c
main.c
+6
-5
No files found.
log/log.txt
View file @
de752264
This source diff could not be displayed because it is too large. You can
view the blob
instead.
main
View file @
de752264
No preview for this file type
main.c
View file @
de752264
...
...
@@ -81,20 +81,21 @@ void *serial_usart2(void *arg)
void
*
Mqtt_onnect
(
void
*
arg
)
{
Delay_Ms
(
5
,
0
);
mqtt_init
();
//mqtt初始化
mqtt_create
(
mosq
);
//创建mqtt客户端
mqtt_create
(
mosq
);
//mqtt_wirte();//mqtt心跳首次发送
while
(
1
)
{
mqtt_init
();
//mqtt初始化
mqtt_create
(
mosq
);
//创建mqtt客户端
mqtt_create
(
mosq
);
if
(
mqtt_create
(
mosq
)
!=-
1
)
{
mqtt_cycle
(
mosq
);
}
mqtt_clean
(
mosq
);
}
mqtt_clean
(
mosq
);
return
NULL
;
}
...
...
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