FGRoute is written on C and Objective C (includes Swift support), it helps developers to get rid of dealing with WiFi interfaces.
iOS 8 and later.
FGRoute is available through CocoaPods. To install it, simply add the following line to your Podfile:
Then, run the following command:
Drag and Drop it into your project
You are ready to go!
With FGRoute you can easily get your ip address, Route, ssid etc.
First of all import header file at the top of your file for ObjC
Full method documentation for Swift
FGRoute.isWifiConnected() // Bolean value to check internet connection FGRoute.getGatewayIP() //route ip address FGRoute.getSSID() // Connected wifi name FGRoute.getBSSID() // Connected wifi BSSID FGRoute.getSSIDDATA() // Connected wifi SSIDDATA FGRoute.getIPAddress() // Your local ip address in network FGRoute.getNetmask() // Connected wifi Netmask FGRoute.getDestination() // Connected wifi Destination ip address
Full method documentation for ObjC
[FGRoute isWifiConnected]; // Bolean value to check internet connection [FGRoute getGatewayIP]; //route ip address [FGRoute getSSID]; // Connected wifi name [FGRoute getBSSID]; // Connected wifi BSSID [FGRoute getSSIDDATA]; // Connected wifi SSIDDATA [FGRoute getIPAddress]; // Your local ip address in network [FGRoute getNetmask]; // Connected wifi Netmask [FGRoute getDestination]; // Connected wifi Destination ip address
You need to have "Access WiFi Information" entitlement enabled and you must meet at least one of criteria bellow
see example for more details
Arthur Sahakyan, [email protected]
FGRoute is available under the MIT license. See the LICENSE file for more info.