Can you pass WiFi settings from an iOS device to an ExternalAccessory object?
Yes! you certainly can. However, to use HomeKit (the library you need) you first need to be a certified MFi (Made For iDevice-iPhone-iPod-iPad) developer. This gives you the ability to allow a user to view all available wifi networks and choose to link the device.
One example of this is Withings with their Aura sleep aid. See screenshot from on boarding experience:
Then the user can then choose to share their home wifi information securely with the new device.
A bit late but configureAccessory
is the method (part of ExternalAccessory
) introduced in iOS 8.0 that you can use to configure a wifi accessory:
It's part of the EAWiFiUnconfiguredAccessoryBrowser
class:
https://developer.apple.com/documentation/externalaccessory/eawifiunconfiguredaccessorybrowser
And showBluetoothAccessoryPicker
is the one for Bluetooth products:
which is part of the EAAccessoryManager
class:
https://developer.apple.com/documentation/externalaccessory/eaaccessorymanager