Hi, I am using CNCopyCurrentNetworkInfo to get the SSID of the current wifi connection. I am wondering if there is a way to tell whether this WiFi is 2.4 or 5.0Ghz? Is there another function I could call to check this?
Thank you
I am using
to get the SSID of the current wifi connection.CNCopyCurrentNetworkInfo
Be aware that
CNCopyCurrentNetworkInfo
has changed in iOS 13 beta. WWDC 2019 Session 708
Designing for Privacy has some general background on this change and the
docs have been updated with the details.
I am wondering if there is a way to tell whether this WiFi is 2.4 or 5.0Ghz?
No. iOS has always placed strict limits on what apps can do with Wi-Fi, and there’s never been a supported API for getting low-level Wi-Fi information like this.
The idea is we have an accessory that needs to connect to the user's home wifi network.
My recommendation here is that you support Wireless Accessory Configuration (WAC) in your accessory. This post has links to more info on that technology.
Share and Enjoy
—
Quinn “The Eskimo!”
Apple Developer Relations, Developer Technical Support, Core OS/Hardware
let myEmail = "eskimo" + "1" + "@apple.com"