My application has a screen similiar to the Alljoyn ON sample. I need to display and update in real-time the list of devices which are discoverable on the network.
For discovering new devices, I'm using the About service client (RegisterAnnounceHandler). When a new device joins the network, I get a callback almost immediately. To find out when a device leaves the network, I use BusAttachment::Ping called on a timer. If a device fails to respond, then I assume that it's not available now.
Currently, I need to ping the device forever, even after it has left the network, the About client doesn't notify me when it comes back. Reading the logs from Alljoyn ON suggests that the sample application follows the same logic.
I would like to "forget" about the device, and get notified with a callback when it joins the network again, without polling for its presence "forever". Is it possible?