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
71e3d515
Commit
71e3d515
authored
Oct 01, 2019
by
TANAKA Masayuki
Committed by
Me No Dev
Oct 01, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix BLEUUID toString (#3289)
uuid16 is Missing first 4 characters. uuid is Missing last 2 characters.
parent
64cfb33d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
libraries/BLE/src/BLEUUID.cpp
libraries/BLE/src/BLEUUID.cpp
+2
-2
No files found.
libraries/BLE/src/BLEUUID.cpp
View file @
71e3d515
...
...
@@ -352,8 +352,8 @@ std::string BLEUUID::toString() {
// If the UUIDs are 16 or 32 bit, pad correctly.
if
(
m_uuid
.
len
==
ESP_UUID_LEN_16
)
{
// If the UUID is 16bit, pad correctly.
char
hex
[
5
];
snprintf
(
hex
,
sizeof
(
hex
),
"%0
4
x"
,
m_uuid
.
uuid
.
uuid16
);
char
hex
[
9
];
snprintf
(
hex
,
sizeof
(
hex
),
"%0
8
x"
,
m_uuid
.
uuid
.
uuid16
);
return
std
::
string
(
hex
)
+
"-0000-1000-8000-00805f9b34fb"
;
}
// End 16bit UUID
...
...
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