# FGRoute **Repository Path**: Cocoapods-Wand/FGRoute ## Basic Information - **Project Name**: FGRoute - **Description**: forked from https://github.com/Feghal/FGRoute.git - **Primary Language**: Unknown - **License**: MIT - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2020-11-16 - **Last Updated**: 2020-12-19 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # FGRoute [![Awesome](https://cdn.rawgit.com/sindresorhus/awesome/d7305f38d29fed78fa85652e3a63e154dd8e8829/media/badge.svg)](https://github.com/sindresorhus/awesome) [![Version](https://img.shields.io/cocoapods/v/FGRoute.svg?style=flat)](http://cocoapods.org/pods/FGRoute) [![License](https://img.shields.io/cocoapods/l/FGRoute.svg?style=flat)](http://cocoapods.org/pods/FGRoute) [![Platform](https://img.shields.io/cocoapods/p/FGRoute.svg?style=flat)](http://cocoapods.org/pods/FGRoute) FGRoute is written on C and Objective C (includes Swift support), it helps developers to get rid of dealing with WiFi interfaces. ## Example

To run the example project, clone the repo, and run `pod install` from the Example directory first. ## Requirements iOS 8 and later. ## Installation ### CocoaPods FGRoute is available through [CocoaPods](http://cocoapods.org). To install it, simply add the following line to your Podfile: ```ruby pod "FGRoute" ``` Then, run the following command: ```ruby pod install ``` ### Manually 1. Drag and Drop it into your project 2. Import "FGRoute.h" 3. You are ready to go! ## Usage 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 ```ObjC #import "FGRoute.h" ``` for Swift ```Swift import FGRoute ``` Full method documentation for Swift ```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 ``` Full method documentation for ObjC ```objective-c [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 ``` ## iOS 13 and later You need to have "Access WiFi Information" entitlement enabled and you must meet at least one of criteria bellow * App with permission to access location * Currently enabled VPN app * NEHotspotConfiguration see example for more details ## Author Arthur Sahakyan, feghaldev@gmail.com ## License FGRoute is available under the MIT license. See the LICENSE file for more info.