tinyb icon indicating copy to clipboard operation
tinyb copied to clipboard

Want to continuously listen the all connected devices

Open vikashgoyal007 opened this issue 7 years ago • 1 comments

Want to use the api to continuously listen the all the connected devices. So if i run the code in loop for 10 times most of the time i get empty list for getDevice api. Please let me know if any anyone tried and get success.

vikashgoyal007 avatar Feb 02 '18 01:02 vikashgoyal007

The getDevices method returns only the cached devices, not the devices that are currently in range. You should perform a discovery, using the start/stopDiscovery methods and then get the Devices. Alternatively, you can use the startNearbyDiscovery to be notified when a new device is detected.

pierantoniomerlino avatar May 11 '18 10:05 pierantoniomerlino