Share via

Xamarin Android: WriteCharacteristic sometimes overwrites OnCharacteristicChanged

Raymond Ha 1 Reputation point
2022-03-24T23:11:47.09+00:00

I have a keep alive message coming ever 3-5 secs. When I execute WriteCharacteristic right as data is coming into OnCharacteristicChanged, it'll overwrite the OnCharacteristicChanged data received with the bytes I'm trying to send over. Is there a new API or SDK that is available that's more thread safe?

Currently using Xamarin.Android SDK 11.4.0.5

Thanks!

Developer technologies | .NET | Xamarin

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.