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
The ObservableGattCharacteristics does not respect the properties when calling methods.
Expected behavior
Respect the bluetooth specs.
Potential fix
These fixes might contain pseudo code:
ReadValueAsync
if (!Enum<GattCharacteristicProperties>.Flags.IsFlagSet(_characteristic.CharacteristicProperties, GattCharacteristicProperties.Read))
{
Log.Debug($"[{this}] Reading is not supported");
return null;
}
SetIndicateAsync
if (!Enum<GattCharacteristicProperties>.Flags.IsFlagSet(_characteristic.CharacteristicProperties, GattCharacteristicProperties.Indicate))
{
Log.Debug($"[{this}] Indicate is not supported");
return false;
}
SetNotifyAsync
if (!Enum<GattCharacteristicProperties>.Flags.IsFlagSet(_characteristic.CharacteristicProperties, GattCharacteristicProperties.Notify))
{
Log.Debug($"[{this}] Notify is not supported");
return false;
}
I'm submitting a...
Current behavior
The
ObservableGattCharacteristicsdoes not respect the properties when calling methods.Expected behavior
Respect the bluetooth specs.
Potential fix
These fixes might contain pseudo code:
ReadValueAsyncSetIndicateAsyncSetNotifyAsync