Git Product home page Git Product logo

fgroute's Introduction

FGRoute

Awesome Version License Platform

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. To install it, simply add the following line to your Podfile:

pod "FGRoute"

Then, run the following command:

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

#import "FGRoute.h"

for Swift

import FGRoute

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

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, [email protected]

License

FGRoute is available under the MIT license. See the LICENSE file for more info.

fgroute's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

fgroute's Issues

Transfer String data to wifi enabled device.

Firstly, thank you for this wonderful library.

I want to transfer data using wifi to connected wifi hotspot device. e.g. Android device has started hotspot, I have connected my iPhone wifi to that Android's hotspot. Now want to pass String data to that Android device.

Is it possible? How can I achieve this functionality just like Xender.

Thanks,
Rashesh

Add support for macOS

Hey @Feghal, thanks for maintaining this. Is it possible to add support for macOS? Most of the code looks usable from macOS so I'm wondering if it's as simple as adding macOS as a target to the podspec?

Any method/api to get ip address of access point if its gateway ip is 0.0.0.0

I am connecting my iPhone with an wifi access point. And that access point returns getway ip as nil by getgateway ip method. As that access point gateway ip was 0.0.0.0 only so how I can get that access point device ip address in my iPhone.

Can you please suggest any method to get ip address of access point if its gateway ip was 0.0.0.0?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.