Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Scan for MFI products over Wi Fi

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.

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

like image 917
The Windwaker Avatar asked Sep 23 '14 15:09

The Windwaker


People also ask

What is mFi Wi-Fi?

mFi is a Machine-to-Machine management system from Ubiquiti Networks, Inc. The mFi hardware can be managed and monitored from the mFi Controller software. The mFi Controller software allows you to create rules that trigger actions based on data from your mFi sensors.

Does iOS support Wi-Fi Direct?

You can connect an iPhone or iPad directly to your product without using a wireless router or access point. To use this feature, your iOS device must have the following installed: iOS 11 or later.

Is AirPlay Wi-Fi Direct?

Peer-to-peer AirPlay links your iPad or iPhone to your TV without having to be on the same Wi-Fi network. Your iOS device will turn into a transient Wi-Fi hotspot, and your TV will tether to it and AirPlay your videos, images, and songs.


1 Answers

I found why it did not work well.

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

like image 166
The Windwaker Avatar answered Oct 06 '22 16:10

The Windwaker