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
664695d6
Commit
664695d6
authored
May 11, 2024
by
王金亮
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix:蓝牙名字改为“QJ-Viva”
parent
5798a441
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
7 deletions
+7
-7
gatts_table_creat_demo.c
qianjiang/main/gatts_table_creat_demo.c
+7
-7
No files found.
qianjiang/main/gatts_table_creat_demo.c
View file @
664695d6
...
@@ -138,7 +138,7 @@ void simple_ota_service(void)
...
@@ -138,7 +138,7 @@ void simple_ota_service(void)
uint8_t
BT_Device_Name
[
14
]
=
"Q
ianJiang
Viva"
;
uint8_t
BT_Device_Name
[
14
]
=
"Q
J-
Viva"
;
#define GATTS_TABLE_TAG "GATTS_TABLE_DEMO"
#define GATTS_TABLE_TAG "GATTS_TABLE_DEMO"
...
@@ -147,7 +147,7 @@ uint8_t BT_Device_Name[14] = "QianJiangViva";
...
@@ -147,7 +147,7 @@ uint8_t BT_Device_Name[14] = "QianJiangViva";
#define PROFILE_APP_IDX 0
#define PROFILE_APP_IDX 0
#define ESP_APP_ID 0x55
#define ESP_APP_ID 0x55
#define SAMPLE_DEVICE_NAME "Q
ianJiang
Viva"
#define SAMPLE_DEVICE_NAME "Q
J-
Viva"
#define SVC_INST_ID 0
#define SVC_INST_ID 0
#define SVC_INST_ID1 1
#define SVC_INST_ID1 1
...
@@ -182,7 +182,7 @@ static uint8_t raw_adv_data[] = {
...
@@ -182,7 +182,7 @@ static uint8_t raw_adv_data[] = {
0x02
,
0x01
,
0x02
,
0x02
,
0x01
,
0x02
,
0x03
,
0x03
,
0x69
,
0x67
,
0x03
,
0x03
,
0x69
,
0x67
,
0x09
,
0xff
,
0x00
,
0x00
,
0x00
,
0x00
,
0x00
,
0x00
,
0x00
,
0x00
,
0x09
,
0xff
,
0x00
,
0x00
,
0x00
,
0x00
,
0x00
,
0x00
,
0x00
,
0x00
,
0x0
d
,
0x09
,
'Q'
,
'I'
,
'A'
,
'N'
,
'J'
,
'I'
,
'A'
,
'N
'
,
'V'
,
'i'
,
'v'
,
'a'
,
0x0
8
,
0x09
,
'Q'
,
'J'
,
'-
'
,
'V'
,
'i'
,
'v'
,
'a'
,
// 0x08, 0x16, 0x60, 0xb3, 0x00, 0x00, 0x00, 0x00, 0x00,
// 0x08, 0x16, 0x60, 0xb3, 0x00, 0x00, 0x00, 0x00, 0x00,
};
};
...
@@ -911,10 +911,10 @@ void Get_Mac_Init(void )
...
@@ -911,10 +911,10 @@ void Get_Mac_Init(void )
printf
(
"My MAC:
\n
"
);
printf
(
"My MAC:
\n
"
);
esp_log_buffer_hex
(
GATTS_TABLE_TAG
,
ble_mac
,
6
);
esp_log_buffer_hex
(
GATTS_TABLE_TAG
,
ble_mac
,
6
);
BT_Device_Name
[
sizeof
(
BT_Device_Name
)
-
5
]
=
temp
[
0
];
BT_Device_Name
[
sizeof
(
BT_Device_Name
)
-
11
]
=
temp
[
0
];
BT_Device_Name
[
sizeof
(
BT_Device_Name
)
-
4
]
=
temp
[
1
];
BT_Device_Name
[
sizeof
(
BT_Device_Name
)
-
10
]
=
temp
[
1
];
BT_Device_Name
[
sizeof
(
BT_Device_Name
)
-
3
]
=
temp
[
2
];
BT_Device_Name
[
sizeof
(
BT_Device_Name
)
-
9
]
=
temp
[
2
];
BT_Device_Name
[
sizeof
(
BT_Device_Name
)
-
2
]
=
temp
[
3
];
BT_Device_Name
[
sizeof
(
BT_Device_Name
)
-
8
]
=
temp
[
3
];
raw_adv_data
[
11
]
=
ble_mac
[
0
];
raw_adv_data
[
11
]
=
ble_mac
[
0
];
raw_adv_data
[
12
]
=
ble_mac
[
1
];
raw_adv_data
[
12
]
=
ble_mac
[
1
];
...
...
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