Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
A
arduino-pico
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Analytics
Analytics
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
xpstem
arduino-pico
Commits
a4390280
Unverified
Commit
a4390280
authored
Apr 29, 2024
by
Dominic Pearman
Committed by
GitHub
Apr 29, 2024
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
BTstack: added function to set scan respone data. (#2134)
Co-authored-by:
Dominic Pearman
<
dominic@phymorous.de
>
parent
a49bcd4a
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
0 deletions
+4
-0
libraries/BTstackLib/src/BTstackLib.cpp
libraries/BTstackLib/src/BTstackLib.cpp
+3
-0
libraries/BTstackLib/src/BTstackLib.h
libraries/BTstackLib/src/BTstackLib.h
+1
-0
No files found.
libraries/BTstackLib/src/BTstackLib.cpp
View file @
a4390280
...
@@ -889,6 +889,9 @@ uint16_t BTstackManager::addGATTCharacteristicDynamic(UUID * uuid, uint16_t flag
...
@@ -889,6 +889,9 @@ uint16_t BTstackManager::addGATTCharacteristicDynamic(UUID * uuid, uint16_t flag
void
BTstackManager
::
setAdvData
(
uint16_t
adv_data_len
,
const
uint8_t
*
adv_data
)
{
void
BTstackManager
::
setAdvData
(
uint16_t
adv_data_len
,
const
uint8_t
*
adv_data
)
{
gap_advertisements_set_data
(
adv_data_len
,
(
uint8_t
*
)
adv_data
);
gap_advertisements_set_data
(
adv_data_len
,
(
uint8_t
*
)
adv_data
);
}
}
void
BTstackManager
::
setScanData
(
uint16_t
scan_data_len
,
const
uint8_t
*
scan_data
)
{
gap_scan_response_set_data
(
scan_data_len
,
(
uint8_t
*
)
scan_data
);
}
void
BTstackManager
::
startAdvertising
()
{
void
BTstackManager
::
startAdvertising
()
{
gap_advertisements_enable
(
1
);
gap_advertisements_enable
(
1
);
}
}
...
...
libraries/BTstackLib/src/BTstackLib.h
View file @
a4390280
...
@@ -143,6 +143,7 @@ extern "C" {
...
@@ -143,6 +143,7 @@ extern "C" {
void
enableDebugLogger
();
void
enableDebugLogger
();
void
setAdvData
(
uint16_t
size
,
const
uint8_t
*
data
);
void
setAdvData
(
uint16_t
size
,
const
uint8_t
*
data
);
void
setScanData
(
uint16_t
size
,
const
uint8_t
*
data
);
void
iBeaconConfigure
(
UUID
*
uuid
,
uint16_t
major_id
,
uint16_t
minor_id
,
uint8_t
measured_power
=
0xc6
);
void
iBeaconConfigure
(
UUID
*
uuid
,
uint16_t
major_id
,
uint16_t
minor_id
,
uint8_t
measured_power
=
0xc6
);
void
startAdvertising
();
void
startAdvertising
();
void
stopAdvertising
();
void
stopAdvertising
();
...
...
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