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-esp32
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-esp32
Commits
1ab550f6
Unverified
Commit
1ab550f6
authored
Feb 16, 2021
by
Michael
Committed by
GitHub
Feb 16, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Changed BLE notify_callback from raw function pointer to std::function (#4737)
parent
9be784f6
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
libraries/BLE/src/BLERemoteCharacteristic.h
libraries/BLE/src/BLERemoteCharacteristic.h
+2
-2
No files found.
libraries/BLE/src/BLERemoteCharacteristic.h
View file @
1ab550f6
...
...
@@ -11,6 +11,7 @@
#if defined(CONFIG_BT_ENABLED)
#include <string>
#include <functional>
#include <esp_gattc_api.h>
...
...
@@ -21,8 +22,7 @@
class
BLERemoteService
;
class
BLERemoteDescriptor
;
typedef
void
(
*
notify_callback
)(
BLERemoteCharacteristic
*
pBLERemoteCharacteristic
,
uint8_t
*
pData
,
size_t
length
,
bool
isNotify
);
typedef
std
::
function
<
void
(
BLERemoteCharacteristic
*
pBLERemoteCharacteristic
,
uint8_t
*
pData
,
size_t
length
,
bool
isNotify
)
>
notify_callback
;
/**
* @brief A model of a remote %BLE characteristic.
*/
...
...
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