We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
BluetoothLE Client (Shiny.BluetoothLE)
Call: FAILS: _managedPeripheral .WhenNotificationReceived(serviceUuid, characteristicUuid) .SubOnMainThread(data => { System.Diagnostics.Debug.WriteLine($"== HR data from managed peripheral: {data[0]}"); }); WORKS: _managedPeripheral .WhenAnyNotificationReceived() .SubOnMainThread(characteristicResult => { System.Diagnostics.Debug.WriteLine($"== HR data from managed peripheral: {characteristicResult.Data[0]}"); }); WORKS: _managedPeripheral .WhenAnyNotificationReceived() .Where(x => x.Characteristic.Service.Uuid.Equals(serviceUuid, StringComparison.InvariantCultureIgnoreCase) && x.Characteristic.Uuid.Equals(characteristicUuid, StringComparison.InvariantCultureIgnoreCase)) .Select(x => x.Data) .SubOnMainThread(data => { System.Diagnostics.Debug.WriteLine($"== HR data from managed peripheral: {data[0]}"); });
Data shown in "Application Output"
Data not shown in "Application Output"
No response
The text was updated successfully, but these errors were encountered:
Fix #958 - Fix equality of WhenNotificationReceived on managed periph…
11f3639
…eral
Please submit a PR in the future for something you have solved.
Sorry, something went wrong.
Thanks i will.
No branches or pull requests
Component/Nuget
BluetoothLE Client (Shiny.BluetoothLE)
What platform(s) are effected?
Steps To Reproduce
Call:
FAILS:
_managedPeripheral
.WhenNotificationReceived(serviceUuid, characteristicUuid)
.SubOnMainThread(data =>
{
System.Diagnostics.Debug.WriteLine($"== HR data from managed peripheral: {data[0]}");
});
WORKS:
_managedPeripheral
.WhenAnyNotificationReceived()
.SubOnMainThread(characteristicResult =>
{
System.Diagnostics.Debug.WriteLine($"== HR data from managed peripheral: {characteristicResult.Data[0]}");
});
WORKS:
_managedPeripheral
.WhenAnyNotificationReceived()
.Where(x =>
x.Characteristic.Service.Uuid.Equals(serviceUuid, StringComparison.InvariantCultureIgnoreCase) &&
x.Characteristic.Uuid.Equals(characteristicUuid, StringComparison.InvariantCultureIgnoreCase))
.Select(x => x.Data)
.SubOnMainThread(data =>
{
System.Diagnostics.Debug.WriteLine($"== HR data from managed peripheral: {data[0]}");
});
Expected Behavior
Data shown in "Application Output"
Actual Behavior
Data not shown in "Application Output"
Exception or Log output
No response
Code Sample
No response
Code of Conduct
The text was updated successfully, but these errors were encountered: