joinAccessoryHotspot does not take a configuration parameter.
Yes, but that's actually because it's "forcing" you into joinOnce. More specifically, what "joinAccessoryHotspot" basically does is:
- Validate your access through ASAccessory.
- Use the data in ASAccessory and the passphrase to construct an "NEHotspotConfiguration" object.
- Set NEHotspotConfiguration.joinOnce = YES.
- Applies that configuration.
Have you manually paired with this accessory before? If you also have a manual pairing, then I think you could get the behavior you're seeing. That is, your app's request causes the device to switch to your hotspot and the manual pairing means the device has no reason to disassociate. Have you tried testing with a different device, ideally a "clean" test device?
__
Kevin Elliott
DTS Engineer, CoreOS/Hardware