Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
R
RT200T_ESP32
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
RT200T
RT200T_ESP32
Commits
67711f5a
Commit
67711f5a
authored
Jun 08, 2024
by
时昊
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
✨
feat:修改蓝牙电话号码显示
parent
7551ea2a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
6 deletions
+7
-6
bt_app_hf.c
RT200T_2_ESP32/main/bt_app_hf.c
+7
-6
No files found.
RT200T_2_ESP32/main/bt_app_hf.c
View file @
67711f5a
...
...
@@ -33,6 +33,7 @@
uint8_t
Iphone_Num
[
20
]
=
{
0xff
};
uint8_t
number_length
=
0
;
const
char
*
c_hf_evt_str
[]
=
{
"CONNECTION_STATE_EVT"
,
/*!< connection state changed event */
...
...
@@ -416,18 +417,18 @@ void bt_app_hf_client_cb(esp_hf_client_cb_event_t event, esp_hf_client_cb_param_
}
else
{
size_t
number_length
=
strlen
(
param
->
clip
.
number
);
number_length
=
strlen
(
param
->
clip
.
number
);
if
(
number_length
>
20
)
{
number_length
=
20
;
}
memcpy
(
Iphone_Num
,
param
->
clip
.
number
,
number_length
);
for
(
int
i
=
0
;
i
<
sizeof
(
Iphone_Num
);
i
++
)
{
// 0xcf 为无效值不显示
//ESP_LOGI(BT_HF_TAG, "--iphone number %x", Iphone_Num[i] - 0x30);
}
//
for (int i = 0; i < sizeof(Iphone_Num); i++)
//
{
//
// 0xcf 为无效值不显示
// }
//ESP_LOGI(BT_HF_TAG, "--ipnumber_length %x", number_length);
}
break
;
...
...
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