Skip to content

Commit

Permalink
Add service_uuid to the ValueNotification struct
Browse files Browse the repository at this point in the history
  • Loading branch information
night-crawler committed Nov 30, 2023
1 parent fbec06e commit 2ef55b8
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/winrtble/peripheral.rs
Original file line number Diff line number Diff line change
Expand Up @@ -497,10 +497,11 @@ impl ApiPeripheral for Peripheral {
.ok_or_else(|| Error::NotSupported("Characteristic not found for subscribe".into()))?;
let notifications_sender = self.shared.notifications_channel.clone();
let uuid = characteristic.uuid;
let service_uuid = ble_service.uuid;
ble_characteristic
.subscribe(Box::new(move |value| {
let notification = ValueNotification {
service_uuid: ble_service.uuid,
service_uuid,
uuid,
value,
};
Expand Down

0 comments on commit 2ef55b8

Please sign in to comment.