ble icon indicating copy to clipboard operation
ble copied to clipboard

issue in discovery

Open saurabh-newera opened this issue 8 years ago • 4 comments

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.

saurabh-newera avatar Jun 15 '17 06:06 saurabh-newera

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.

ecc1 avatar Jun 15 '17 13:06 ecc1

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.

saurabh-newera avatar Jun 16 '17 08:06 saurabh-newera

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.

ecc1 avatar Jun 16 '17 14:06 ecc1

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.

ecc1 avatar Jun 16 '17 14:06 ecc1