ConnectAccessories method in frontend iOS that gives 0 items

This may be a duplicate question, but all the previous ones have been asked over a year ago and have no useful answer.

Pair with bluetooth. connectedAccessories each time counting 0 iOS External Accessory Framework: how to get protocol string for a specific MFI device https://apple.stackexchange.com/questions/45398/is-it-possible-to-get-the-api-details-and- protocol-details-from-an-mfi-certified

I want to use an external accessory framework to connect my iOS app with mfi devices. I am running the EADemo app but it requires Supported external accessory protocols strings

. I don't know where to get this line from and what these lines are. Please help which line should I use to at least test the sample application. I currently have an iPhone, iPod, bluetooth speakers (bose) and a headset.

Please help, I am stuck here.

Thanks in advance!

Any suggestions would be much appreciated.

Edit 1: After reading the documentation for Apple https://developer.apple.com/library/content/featuredarticles/ExternalAccessoryPT/Introduction/Introduction.html#//apple_ref/doc/uid/TP40009498-SW1

he says that trying to communicate with a particular accessory requires knowing the protocol string from the manufacturers to communicate with it. but what this line returns:

NSArray *accessories = [[EAAccessoryManager sharedAccessoryManager]
                                   connectedAccessories];

      

I have connected 2-3 speakers via bluetooth from my phone, so in the above line give me the information about the connected accessory, even if I have not declared any protocol lines in info.plist as apple says for communication that it is important to know the protocol, but we we can see devices in some list. I am getting 0 items.

From apple docs:

"This class contains an array of already connected accessory objects that you can enumerate to see if there is one your app supports." 

      

suggest.

can anyone please provide some example accessory name I should use to test the outer frame work (means providing the accessory as an element)

+3
ios bluetooth external-accessory mfi


source to share


No one has answered this question yet

See similar questions:

4
iOS External Accessory Framework: How to get the protocol string for a specific MFI device
1
Pair of pairing with external accessories. connectedAccessories count 0 every time

or similar:

8
Bluetooth Classic with iOS ExternalAccessoryFramework
7
What's the difference between CoreBluetooth and ExternalAccessory frameworks?
6
iOS connects / connects to bluetooth device when using external accessories and MFI
2
Connect to a Bluetooth Classic (Not LE) device on iOS without using an external accessory structure
2
Can't write data to external bluetooth device using external infrastructure
2
MFI Accessory communicates with the app via USB
0
How to use external accessory structure without protocol from MFi program
0
Can you access bluetooth device via ExternalAccessory framework after pairing with CoreBluetooth?
0
Bluetooth reconnection from MFI EAAccessory not triggering EAAccessoryDidConnectNotification?
0
Communication with MFI certified lightning rod



All Articles
Loading...
X
Show
Funny
Dev
Pics