Connect to WiFi programmatically in ios

后端 未结 4 1266
余生分开走
余生分开走 2021-01-01 05:25

My question is about private API in IOS. Is there some API to manage WiFi connection? For example I\'m using Apple80211.framework to scan WiFi networks but it\'s unusable fo

4条回答
  •  夕颜
    夕颜 (楼主)
    2021-01-01 05:57

    I ran into this issue last year and after quite a bit of digging I came across a helpful example called SOLStumbler. For this app to work your device must be jailbroken. I modified SOLStumbler and threw up a sample app on github. It uses the IPConfiguration bundle to access Apple80211 framework, which allows you to associate to a network. The readme contains the custom build instructions.

    https://github.com/devinshively/wifiAssociate

提交回复
热议问题