NEHotspotConfigurationManager joinAccessoryHotspot not working when using ssidPrefix

When using ssidPrefix in the descriptor and completing the AccessorySetupKit setup, I attempt to connect to the accessory's Wi-Fi hotspot using NEHotspotConfigurationManager joinAccessoryHotspot. The connection fails with the following error:

Error Domain=NEHotspotConfigurationErrorDomain Code=1 "invalid SSID." UserInfo={NSLocalizedDescription=invalid SSID.}
  • I'm using a prefix that is at least 3 characters.
  • If I provide ssid instead of ssidPrefix it connects successfully.

So lemme see if I understand this correctly:

  1. You have an iOS app.

  2. It calls AccessorySetupKit to let the user choose an accessory.

  3. As part of that, you supply a discovery descriptor with the ssidPrefix property set to your accessory’s prefix.

  4. The user is able to choose your accessory.

  5. You get back an ASAccessory object.

  6. You pass that to the joinAccessoryHotspot(_:passphrase:completionHandler:) method.

  7. It fails with .invalidSSID (error 1).

Is that right?

Share and Enjoy

Quinn “The Eskimo!” @ Developer Technical Support @ Apple
let myEmail = "eskimo" + "1" + "@" + "apple.com"

That's right!

NEHotspotConfigurationManager joinAccessoryHotspot not working when using ssidPrefix
 
 
Q