Modified to work correctly when multiple characteristics of the same uuid are passed.

This commit is contained in:
ogatatsu committed 2020-01-12 20:10:40 +09:00
1 parent e83bf4047a
commit 37e3b53bcf
1 file changed
+3
@@ -134,6 +134,9 @@ uint8_t BLEDiscovery::discoverCharacteristic(uint16_t conn_handle, BLEClientChar
{
for (uint8_t i=0; i<count; i++)
{
if ( chr[i]->discovered() )
continue;
if ( chr[i]->uuid == disc_chr->chars[d].uuid )
{
LOG_LV2("DISC", "[CHR] Found 0x%04X, handle = %d\n-----------------", disc_chr->chars[d].uuid.uuid, disc_chr->chars[d].handle_value);