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
b7678482
Commit
b7678482
authored
Jan 05, 2025
by
957dd
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
apt code
parent
de748d9b
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
19 additions
and
8 deletions
+19
-8
mqtt.c
mqtt.c
+7
-1
opensh.c
opensh.c
+4
-0
serial.c
serial.c
+7
-0
serial.h
serial.h
+1
-7
No files found.
mqtt.c
View file @
b7678482
#include <stdio.h>
#include <stdlib.h>
#include <stdint.h>
#include <string.h>
#include <fcntl.h>
#include <unistd.h>
#include <termios.h>
#include <mosquitto.h>
#include <mosquitto.h>
#include <cjson/cJSON.h>
#include <cjson/cJSON.h>
#include <string.h>
#include<time.h>
#include<time.h>
#include <pthread.h>
#include <pthread.h>
#include "ip.h"
#include "ip.h"
...
...
opensh.c
View file @
b7678482
...
@@ -5,6 +5,10 @@
...
@@ -5,6 +5,10 @@
#include <cjson/cJSON.h>
#include <cjson/cJSON.h>
#include<time.h>
#include<time.h>
#include <pthread.h>
#include <pthread.h>
#include <stdint.h>
#include <fcntl.h>
#include <unistd.h>
#include <termios.h>
#include "ip.h"
#include "ip.h"
#include "serial.h"
#include "serial.h"
#include "mqtt.h"
#include "mqtt.h"
...
...
serial.c
View file @
b7678482
#include <stdio.h>
#include <stdlib.h>
#include <stdint.h>
#include <string.h>
#include <fcntl.h>
#include <unistd.h>
#include <termios.h>
#include <mosquitto.h>
#include <mosquitto.h>
#include <cjson/cJSON.h>
#include <cjson/cJSON.h>
#include<time.h>
#include<time.h>
...
...
serial.h
View file @
b7678482
#ifndef __SERIAL_H__
#ifndef __SERIAL_H__
#define __SERIAL_H__
#define __SERIAL_H__
#include <stdio.h>
#include <stdlib.h>
#include <stdint.h>
#include <string.h>
#include <fcntl.h>
#include <unistd.h>
#include <termios.h>
#define SERIAL_PORT1 "/dev/ttyS3" // 根据实际设备修改
#define SERIAL_PORT1 "/dev/ttyS3" // 根据实际设备修改
#define SERIAL_PORT2 "/dev/ttyS0"
#define SERIAL_PORT2 "/dev/ttyS0"
...
...
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