We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 64cfb33 commit 71e3d51Copy full SHA for 71e3d51
libraries/BLE/src/BLEUUID.cpp
@@ -352,8 +352,8 @@ std::string BLEUUID::toString() {
352
// If the UUIDs are 16 or 32 bit, pad correctly.
353
354
if (m_uuid.len == ESP_UUID_LEN_16) { // If the UUID is 16bit, pad correctly.
355
- char hex[5];
356
- snprintf(hex, sizeof(hex), "%04x", m_uuid.uuid.uuid16);
+ char hex[9];
+ snprintf(hex, sizeof(hex), "%08x", m_uuid.uuid.uuid16);
357
return std::string(hex) + "-0000-1000-8000-00805f9b34fb";
358
} // End 16bit UUID
359
0 commit comments