通过Wi Fi扫描MFI产品 [英] Scan for MFI products over Wi Fi

查看:211
本文介绍了通过Wi Fi扫描MFI产品的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在iOS 8中,Apple允许我们通过Wifi直接连接到设备并与其共享wifi网络凭据。
我们可以在wifi设置页面中进行,也可以在应用程序中进行。

In iOS 8, Apple allows us to connect to a device via Wifi direct and share wifi network credentials with it. We can do it in wifi settings page but also in an app.

我正在尝试启动扫描以查找wifi MFI设备。
我可以在wifi设置中看到那些但不在app中。
以下是我的工作方式:

I'm trying to launch a scan to find wifi MFI devices. I can see those in the wifi settings but not in app. Here is how I do this:

EAWiFiUnconfiguredAccessoryBrowser *_wifiBrowser = [[EAWiFiUnconfiguredAccessoryBrowser alloc] initWithDelegate:self queue:nil];
[_wifiBrowser startSearchingForUnconfiguredAccessoriesMatchingPredicate:nil];

所以我希望在委托方法中看到一个附件

So I expect to see an accessory in the delegate method

- (void)accessoryBrowser:(EAWiFiUnconfiguredAccessoryBrowser *)browser didFindUnconfiguredAccessories:(NSSet *)accessories

但是没有发生。
你知道缺少什么吗?

But nothings happens. Do you know what is missing ?

thx

推荐答案

<我找到了为什么它不能正常工作。

I found why it did not work well.

你需要进入你的Capabilities面板(通过选择你的目标)
然后启用无线附件配置!

You need to go in your Capabilities pannel (by selecting your target) And then enable Wireless Accessory Configuration !

这篇关于通过Wi Fi扫描MFI产品的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆