-
Notifications
You must be signed in to change notification settings - Fork 46
Description
Issue
Upon connecting to a device, I have code that reads from its characteristics to determine the initial state of the UI. However, there exist two variants of the peripheral device and they differ by one characteristic, which is present in Variant A, but missing from Variant B.
At present, the app just goes ahead and reads them all. However, this approach results in all read operations on all of the characteristics failing when connected to a Variant B device. Is this how it is meant to work? I would expect only the read operation on the missing characteristic to fail.
The error code is:
Error Domain=com.raizlabs.bluetooth Code=6 "(null)" UserInfo={undiscoveredUUIDs=(
"00000000-0000-0000-0000-000000000005"
The same error message is repeated for each of the read operations.
I do of course realize there are many ways to work around this issue, such as simply checking for the presence of the offending characteristic before reading from it. Nevertheless, I wanted to report this since the behavior I have observed doesn't make sense to me.