tinyb
tinyb copied to clipboard
Want to continuously listen the all connected devices
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.
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.