Hello,
I am looking into the newly announced Accessory Setup Kit and I'd like to replace my manual WiFi connection setup with it, but I cannot find a way how to specify WiFi password when configuring ASDiscoveryDescriptor
, only ssid
or ssidPrefix
can be specified?
Is it really not possible to connect to WiFi with password with this new framework? That kind of makes it unusable for my use case :( Since the accessory has password.
If you read to the end of "Discovering and configuring accessories", it ends by saying:
Use this information to connect to the accessory — using Core Bluetooth for Bluetooth or Network Extension for Wi-Fi — and begin your device-specific setup process....
The system already has APIs that manage all of the complexity of bus specific pairing and we didn't want to reinvent all of that work. What AccessorySetupKit provides is a mechanism for discovering and managing a persistant relationship between your app and a specific accessory, which then streamlines the flow of those other APIs. The other APIs then handle the actual connection process. For WiFi, that class is NEHotspotConfiguration, which handle password authentication among many others.
__
Kevin Elliott
DTS Engineer, CoreOS/Hardware