Skip to content

Commit 0a2442b

Browse files
kragaclesqdot
authored andcommitted
Improve the comments around corebluetooth didmodifyservices
1 parent ddeba1b commit 0a2442b

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

src/corebluetooth/central_delegate.rs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -739,8 +739,11 @@ declare_class!(
739739
"delegate_peripheral_didmodifyservices {}",
740740
peripheral_debug(peripheral),
741741
);
742-
// NOTE: This is a corebluetooth-only even that makes the peripheral unusable until service discovery has been performed again.
742+
// This is a corebluetooth-only event that makes peripheral services unusable until discovery has been performed again.
743743
// https://developer.apple.com/documentation/corebluetooth/cbperipheraldelegate/peripheral(_:didmodifyservices:)?language=objc
744+
// Trigger the removal of internal corebluetooth peripheral discovered services. It is also expected that
745+
// discover_services() will be performed again on the peripheral at the API level as soon as is practical.
746+
// NOTE: the list of modified services does not appear to be particularly useful; a full service rediscovery is needed.
744747
self.send_event(CentralDelegateEvent::ServicesModified {
745748
peripheral_uuid: nsuuid_to_uuid(unsafe { &peripheral.identifier() }),
746749
});

0 commit comments

Comments
 (0)