makePayload(ownershipToken:)
Builds an accessory setup payload with the given ownership token.
Declaration
func makePayload(ownershipToken: HMAccessoryOwnershipToken) -> HMAccessorySetupPayload?Parameters
- ownershipToken:
A token proving ownership of the accessory.
Return Value
An accessory setup payload that you use to add the accessory. The method fails and returns nil if the request’s requiresSetupPayloadURL property is true. In that case, use makePayload(url:ownershipToken:) instead.