init(for:)
Creates a controller for a given accessory.
Declaration
init(for accessory: ASAccessory) async throwsParameters
- accessory:
The accessory to send requests to.
Discussion
Use this initializer to create a network-sharing controller for the specified accessory. The accessory needs to be connected and using a secure transport when creating the controller.