Skip to content

Commit 98a0e16

Browse files
committed
Add LOG_LV2 for BLE Characteristic UUIDs on Discovery
1 parent b3b3fe1 commit 98a0e16

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

libraries/Bluefruit52Lib/src/BLEDiscovery.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -240,6 +240,10 @@ void BLEDiscovery::_eventHandler(ble_evt_t* evt)
240240

241241
LOG_LV2("DISC", "[CHR] Characteristic Count: %d", chr_rsp->count);
242242

243+
for (uint8_t i; i < chr_rsp->count; i++) {
244+
LOG_LV2("DISC", "[CHR] Characteristic #%d: 0x%04X", i, chr_rsp->chars[i].uuid.uuid);
245+
}
246+
243247
if (gattc->gatt_status == BLE_GATT_STATUS_SUCCESS)
244248
{
245249
if ( chr_rsp->count )

0 commit comments

Comments
 (0)