How to scan all available wifi and connect with particular wifi

时间:2017-08-05 10:55:32

标签: ios swift3

I want to get wifi's SSID and password from server and I have to check any available wifi's SSID is matched with my server's SSID. If any matched, I have to connect with that wifi using its password. I have read many post related to this but I couldn't get any answer.

2 个答案:

答案 0 :(得分:0)

This is not possible in iOS. The only thing you can retrieve is the SSID after the user has connected to one of the Wi-Fi networks using the regular iOS UI.

答案 1 :(得分:0)

您可以使用热点配置来注册要连接的SSID /密码。

有关更多信息,请参见iOS - How to programmatically connect to a WiFi network given the SSID and Password using a private/3rd party library