Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Q
QJ_500-7c
Project
Project
Details
Activity
Releases
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
时昊
QJ_500-7c
Commits
5798a441
Commit
5798a441
authored
May 08, 2024
by
王金亮
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat:新增在ID12下,发送蓝牙名称
parent
6ed34a29
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
2 deletions
+8
-2
Protocol_User.c
qianjiang/main/Protocol_User.c
+7
-2
gatts_table_creat_demo.h
qianjiang/main/gatts_table_creat_demo.h
+1
-0
No files found.
qianjiang/main/Protocol_User.c
View file @
5798a441
...
...
@@ -315,10 +315,15 @@ void Uart_Send_Id10_Pro(void )
void
Uart_Send_Id12_Pro
(
void
)
{
uint8_t
ID12
[
1
]
=
{
0
};
uint8_t
ID12
[
1
5
]
=
{
0
};
ID12
[
0
]
|=
(
uint8_t
)(
BT_User
.
BT_Sts
<<
4
);
ID12
[
0
]
|=
Ble_User
.
Ble_Sts
;
Protocol_Send
(
0x12
,
ID12
,
1
);
unsigned
int
i
=
0
;
for
(
i
=
0
;
i
<
14
;
i
++
)
{
ID12
[
i
+
1
]
=
BT_Device_Name
[
i
];
}
Protocol_Send
(
0x12
,
ID12
,
15
);
}
void
Uart_Send_Id01_Pro
(
void
)
...
...
qianjiang/main/gatts_table_creat_demo.h
View file @
5798a441
...
...
@@ -79,4 +79,5 @@ extern uint8_t BT_Device_Name[14];
void
Get_Mac_Init
(
void
);
extern
int
bsp_Uart_Send_Data
(
uint8_t
*
data
,
unsigned
int
len
);
extern
uint8_t
BT_Device_Name
[
14
];
#endif
\ No newline at end of file
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