1

I want to know if there is any iOS API available which can be used to find out what kind of router i am connected to.. for Ex:- if wifi router is a G type router or N type router. My application have needs to identify the kind of router connected & based on that start proceeding to the next steps.

Any help will be appreciated.

Dinesh
  • 929
  • 7
  • 25
  • What's up with the down votes without even explaining the reason? – Rivera Apr 17 '14 at 05:17
  • 1
    There is a CoreWLan framework for the MAC and one of the headers contain the wifi type. An IOS version is probably part and parcel of the IOS core but not available to the 3rd party apps like the ones we make, I'd suggest bringing this up with Apple support because they may have an undocumented interface somewhere. – Paulo Apr 20 '14 at 04:07
  • some people are just trigger happy in down voting, I think this is a valid question, important to know whether to allow particular types of network connection or disallow it because it will just result in bad user experience. – Paulo Apr 20 '14 at 04:12
  • Thanks Paulo, But i am looking for an ios alternative.. if not in objective C i guess c code might be of use for me as well.. Any other pointers for ios? – Dinesh Apr 21 '14 at 08:17
  • is there any ioctl that can give you this info? or maybe something like what ifconfig shows? also, if you can get the MAC, you can identify the vendor of the router... perhaps that's helpful. – nielsbot Apr 23 '14 at 03:23
  • @nielsbot i need to find out the details programatically not by visiting the vendor website. also as per i know ios6.0 and above doesn't allows to find the mac address of wifi or iPad with public Apis – Dinesh Apr 23 '14 at 09:08

2 Answers2

1

I don't think that sort of info is send over a WiFi signal. Unless you hack into the router and pull its details.

Can you not just check the speed and determine N/G etc based on that?

Robert J. Clegg
  • 7,231
  • 9
  • 47
  • 99
  • IS there any way to find out the speed of a wifi router using iOS Api's. I tried google it but no answer found. – Dinesh Apr 14 '14 at 11:39
  • Well it seems to me that some Apps are able to analyze the network including routers so it may well be possible: https://itunes.apple.com/jp/app/lan-scan-network-device-scanner/id597541266?mt=8 – Rivera Apr 17 '14 at 05:19
  • I'd be very interested in knowing how they get that sort of information. Interesting. – Robert J. Clegg Apr 17 '14 at 05:45
0

Did you see this thread,

Accessing iPhone WiFi Information via SDK

Iy mentions few external private API's to get Wifi information , have a look

Community
  • 1
  • 1
rustylepord
  • 5,681
  • 6
  • 36
  • 49
  • I need public APIs not private one. Also AFAIK those private Api's doesn't work on latest iOS version anymore. – Dinesh Apr 23 '14 at 09:10