문제

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.

도움이 되었습니까?

해결책

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.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top