Contents

unblockAccessory(_:completionHandler:)

Unblocks a blocked accessory.

Declaration

func unblockAccessory(_ accessory: HMAccessory, completionHandler completion: @escaping  @Sendable ((any Error)?) -> Void)
func unblockAccessory(_ accessory: HMAccessory) async throws

Parameters

  • accessory:

    The accessory to unblock.

  • completion:

    The block executed after the request is processed.

    error

    nil on 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.

See Also

Managing accessories