how to judge in 2.4g wifi in code?

When in 2.4g wifi, I want to show users a tip, but how to judge in 2.4g wifi?

Replies

how to judge in 2.4g wifi?

What platform are you working on?

Share and Enjoy

Quinn “The Eskimo!”
Apple Developer Relations, Developer Technical Support, Core OS/Hardware

let myEmail = "eskimo" + "1" + "@apple.com"

iOS 9 above

iOS has very limited Wi-Fi management APIs; you can see a summary of them in QA1942 iOS Wi-Fi Management APIs. None of them let you determine whether the current Wi-Fi network is 2.4 GHz or 5 GHz.

Just out of curiosity, why does this matter to you?

Share and Enjoy

Quinn “The Eskimo!”
Apple Developer Relations, Developer Technical Support, Core OS/Hardware

let myEmail = "eskimo" + "1" + "@apple.com"

Some special actions must work on 2.4GHz

Some special actions must work on 2.4GHz

Well that’s rather vague. Care to elaborate? While I’m skeptical that more information will enable me to suggest a solution, there’s always that possibility.

Share and Enjoy

Quinn “The Eskimo!”
Apple Developer Relations, Developer Technical Support, Core OS/Hardware

let myEmail = "eskimo" + "1" + "@apple.com"