You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
On Android at least (have not checked for the other platforms) the equality check of DiscoveredCharacteristic may be incorrect if the list of descriptors is non-empty:
This is because the equality of a DiscoveredCharacteristic will be checked against it's list of descriptors, and on Android the BluetoothGattDescriptor object does not provide an equals function. So, if we have two descriptor objects in memory that represent the same descriptor on a peripheral, then they will erroneously be seen as not equal.
In most cases this will not be an issue, but the Observers class relies on the correctness of Characteristic equality.
The text was updated successfully, but these errors were encountered:
On Android at least (have not checked for the other platforms) the equality check of
DiscoveredCharacteristic
may be incorrect if the list of descriptors is non-empty:kable/core/src/commonMain/kotlin/Characteristic.kt
Lines 24 to 28 in 5d6e00e
This is because the equality of a
DiscoveredCharacteristic
will be checked against it's list of descriptors, and on Android theBluetoothGattDescriptor
object does not provide anequals
function. So, if we have two descriptor objects in memory that represent the same descriptor on a peripheral, then they will erroneously be seen as not equal.In most cases this will not be an issue, but the
Observers
class relies on the correctness ofCharacteristic
equality.The text was updated successfully, but these errors were encountered: