Add characteristic if CCCD value cannot be read


Add the characteristic UUID to mIndicateChars as soon as its Client
Characteristic Configuration descriptor is found.

Previously, the characteristic was added only after attempting to read
the descriptor value. If reading the descriptor failed, the
characteristic was not added to mIndicateChars. As a result, value
changes from the characteristic were not handled and data could not be
read from the device.

Registering the characteristic before reading the descriptor allows
value changes to be handled even when reading the descriptor value
fails.

Fixes: QTBUG-80580
Pick-to: 6.12 6.11 6.8
Change-Id: I97813d16351143e39b46d0be0832ec7addeacc94
Reviewed-by: Oliver Wolff <oliver.wolff@qt.io>
commita00aa391954835e3858d4135c13fa17d01dd93e1
parentfad55ea4af6606cd53cb2b35394459a3b0a89c2c
authorNhung Pham <nhungpt1111@gmail.com>
committerOliver Wolff <oliver.wolff@qt.io>
commit timeTue, 18 Aug 2026 09:01:17 +0000