EAAccessoryManager shows 0 connected devices, settings shows otherwise
EAAccessoryManager shows 0 connected devices, settings shows otherwise
- Subject: EAAccessoryManager shows 0 connected devices, settings shows otherwise
- From: Reid Belton <email@hidden>
- Date: Mon, 17 Mar 2014 20:49:12 +0000
- Thread-topic: EAAccessoryManager shows 0 connected devices, settings shows otherwise
Hello all,
I’m having a connectivity problem and would greatly appreciate any pointers or advice. Basically, I am connecting to an MFi accessory using the EAAccessory API. I don’t appear to have any outward issues; the iPad shows itself as connected to the accessory in bluetooth settings, and the accessory shows that it is connected as well. Most of the time, everything’s gravy; I can pair, open a session and do what I need to do.
However, about 1/10 times, seemingly at random, my app is unable to connect to the device and start a session. In fact the API seems to be telling me that there’s nothing to connect to, despite the indications to the contrary. I receive no EAAccessoryDidConnectNotification events at all, and when I call [[EAAccessoryManager sharedManager] connectedAccessories], I get an empty array, even though (again) I can go into settings and the iPad seems to be telling me that I’m connected.
I’m reasonably confident that I am properly registered and listening to these notifications, because whenever I connect successfully I do receive them (and I get the expected device when I call connectedAccessories).
What would cause this kind of intermittent problem and how can I resolve it?
Would greatly appreciate any help. Thanks in advance!
-Reid
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Bluetooth-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden