unblockAccessory(_:completionHandler:)
Unblocks a blocked accessory.
Declaration
func unblockAccessory(_ accessory: HMAccessory, completionHandler completion: @escaping @Sendable ((any Error)?) -> Void)func unblockAccessory(_ accessory: HMAccessory) async throwsParameters
- accessory:
The accessory to unblock.
- completion:
The block executed after the request is processed.
- error
nilon success; otherwise, error object indicating the reason for failure.
Discussion
A misbehaving accessory automatically becomes blocked. After that, all requests to the accessory fail. Use this API to explicitly unblock the accessory.