Skip to content

Commit e7cba98

Browse files
authored
Merge pull request #1603 from swlasse/v4.0
Updated Peripheral.NotifyCharacteristic() on Android to use UUID for service and characteristic comparison
2 parents dec68ee + 75e6869 commit e7cba98

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Shiny.BluetoothLE/Platforms/Android/Peripheral_Characteristics.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ public IObservable<BleCharacteristicResult> NotifyCharacteristic(string serviceU
108108
}))
109109
.Switch()
110110
.Select(ch => this.notifySubj
111-
.Where(x => x.Equals(ch))
111+
.Where(x => x.Is(ch.Service!.Uuid!, ch.Uuid!))
112112
.Select(x => this.ToResult(x, BleCharacteristicEvent.Notification))
113113
)
114114
.Switch()

0 commit comments

Comments
 (0)