GithubHelp home page GithubHelp logo

m3ftah / wifidirectdemo Goto Github PK

View Code? Open in Web Editor NEW

This project forked from anuj7sharma/wifidirectdemo

0.0 2.0 0.0 140.7 MB

This demo is built with the help of Android native code of WiFiDIrect but i added some functionality to make this code Bi-Directional. Here One will be server and other will be client.

Java 34.32% Gherkin 0.47% Ruby 0.83% HTML 64.03% Python 0.34%

wifidirectdemo's Introduction

WiFiDIrectDemo

This demo is built with the help of Android native code of WiFiDIrect. But i added some functionality to make this code Bi-Directional. Here One will be server and other will be client.

In WiFiP2P api onConnectionInfoAvailable method call and tells that wifi connection has been established. Here we know which device is servre and which is client. To create code Bi-Directional, Server should know the IP address of client.

Interesting Fact-> Server IP is defined by the API itself and its 192.168.49.1 and for client IP is also defined by API. So here in this code when connection establish, client send a ping to server sliently without knowing user. In Async Task which wait for opening a conection. Here server receives the IP of client and server store that IP to sharedprefrene.

And there is simple logic which define file is to be send to which device.

You can find APK file to test the functionality. https://play.google.com/store/apps/details?id=anuj.wifidirect

Take a look on this code and surely you will understand, in case of an kind of problem just put your comment and let me know about.

My Email id: [email protected]

wifidirectdemo's People

Contributors

anuj7sharma avatar m3ftah avatar

Watchers

 avatar  avatar

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.