3

I want to create an app which connects to an external device via wifi signal. I am connected with the wifi to the external device when I start the app.

In my app, i call:

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

but accessories remains empty.

What am I missing here?

(I created a simple app for which I followed the description from the Developer Library, but still no EAAccessory is found.) Also, I tried EADemo but this also does not work.

4

1 回答 1

2

Yes, like iPatel says, EAAccessory is only for devices & accessories that connect to the port of an iPad or iPod.

But since you were saying that you are already connected via WiFi to the external device, it sounds like all you need to do is figure out an interface through which you can talk to this device. Can you connect to the device through HTTP or some high level protocol, or can you use TCP or UDP to talk to it?

If you can, then that's all you need to finish getting your app connected to your external WiFi connected device.

于 2013-03-30T09:27:23.580 回答