On Android, invoking Read will raise ValueUpdated when the value becomes available. On iOS, this is not currently the case. This means it's not possible to write platform-agnostic code such as:
characteristic.ValueUpdated += ...;
if (characteristic.CanRead)
{
characteristic.Read();
}
This will work for Android, but not iOS. And since reads in Android are asynchronous, there is no real workaround.
This PR fixes this by ensuring a call to Read will result in ValueUpdated being raised for iOS too.
On Android, invoking
Read
will raiseValueUpdated
when the value becomes available. On iOS, this is not currently the case. This means it's not possible to write platform-agnostic code such as:This will work for Android, but not iOS. And since reads in Android are asynchronous, there is no real workaround.
This PR fixes this by ensuring a call to
Read
will result inValueUpdated
being raised for iOS too.