How to Discover

“Lets you find other applications nearby”

AllJoyn applications must enter a Discovery state to detect the presence of other AllJoyn applications. Discovery in the AllJoyn framework is done based on the well-known name prefix. This prefix is used to identify the application and understand what the application is that was found. The AllJoyn framework triggers a callback whenever an advertisement is received that starts with the supplied prefix.

The AllJoyn SDK provides a BusListener class containing a set of methods that can be implemented in your application. The BusListener provides valuable information such as the application that was found, the communication transport (Wi-Fi, Wi-Fi Direct, etc.), and when it leaves proximity.