issue in discovery
i have 2-3 sensorTags when i am initiating the discovery process i am getting :- 2017/06/15 02:29:30 saurabhpi: starting discovery 2017/06/15 02:31:38 saurabhpi: discovered PSSENSBANKB 2017/06/15 02:31:38 saurabhpi: stopping discovery 2017/06/15 02:31:38 found 2 instances of interface org.bluez.Device1 exit status 1 i am using the sample code for discovery from cmd directory.
In my application it only makes sense to have one device with the specified UUIDs, so findObject in base.go returns an error.
I don't have any need for this, but will consider a patch if you want to make it work.
yes please consider a patch for this. and what this- (found 2 instances of interface org.bluez.Device1) exactly means? one more thing-- if i am executing the code for discovery more than once then it prints saurabhpi: starting discovery and stops.....
Thank you.
Sorry if I wasn't clear, but I don't have any plans to work on this. If you want to submit a patch, I'll consider it though.
Unless you pass a non-zero timeout to Discover(), it will wait forever. You should also use GetDevice or GetDeviceByName before calling Discover, in case the device has already been found.