Wireless Communication Library Support Forum

Frameworks => Bluetooth Framework => Topic started by: catmagic on November 25, 2014, 12:05:27 PM

Title: WclBluetoothDiscovery discovers devices that are switched off
Post by: catmagic on November 25, 2014, 12:05:27 PM
Hi

If I switch off a bluetooth device and quickly call
Code: [Select]
WclBluetoothDiscovery.Discovery(radio) the device can still be discovered.

With a delay of a few seconds, this doesn't occur.

How can I get around this?  Is there some sort of device list that needs to be cleared somewhere?

Thanks
Title: Re: WclBluetoothDiscovery discovers devices that are switched off
Post by: Mike Petrichenko on November 25, 2014, 12:42:43 PM
Hi,

It depends on Bluetooth driver. Some drivers (MS) return turned off devices if they have been paired, some does not. Unfortunately there is no way to control that as it is implemented on driver's level and WCL can not control that. The only way may help in some cases is to unpair devices before rediscovering.
Title: Re: WclBluetoothDiscovery discovers devices that are switched off
Post by: catmagic on November 25, 2014, 12:56:10 PM
Hi,

It depends on Bluetooth driver. Some drivers (MS) return turned off devices if they have been paired, some does not. Unfortunately there is no way to control that as it is implemented on driver's level and WCL can not control that. The only way may help in some cases is to unpair devices before rediscovering.

OK thanks for your help. I'll try unpairing first  :)