Question

i want to build an android application using Wifi peer to peer without to be connected to internet, and without using an AP (Access Point) , so i wonder, if it's better to use the WiFi-Direct Api, or the framework Alljoyn to build it ? (i think that this last one is doing the same thing like The WiFi-Direct Api, but with using an AP). Please anyone can explain to me this point. Thanks in advence.

Was it helpful?

Solution

AllJoyn is an higher level framework that does most of the plumbing for you, basically you define an interface, register it, create a session and your good to go. It works over IP (so WiFi with an AP for example) and has special code for wifi direct (buy not officially supported now) and there's a partial Bluetooth LE implementation (but which currently requires a rooted android phone).

There's a description of what's officially supported in this forum post : https://allseenalliance.org/developer-resources/forum/developers/how-alljoyn-works-mobile-devices

You can do all of this by yourself over WiFi or WiFi direct, but it would a lot more work (you'll have to implement discovery, marshaling, etc yourself).

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top