tags:

views:

240

answers:

1

Currently i am using Bluetooth APIs meant for Microsoft bluetooth stack. I have developed an bluetooth PC application in C++ which discovers remote bluetooth device and then authenticate device through some API. Problem is when i turn off bluetooth radio from remote device and then start searching the device again through PC application, API still detects the remote device even if remote device radio is turned off.

I suspect device cache which is part of OS is not getting updated. So API returns the same device name.

Any help in finding why device is not updated and also any pointers to bluetooth API would be appreciated.

A: 

What API are you using? There's the 'unknown', 'remembered' and 'authenticated' flags. Which with WSALookupService... are output in the dwOutputFlags field for instance, see Bluetooth and WSAQUERYSET for Device Inquiry (Windows)

Unfortunately that means there's no way to get "devices (in discoverable-mode) in range". :-( See more info at "Listing Discoverable devices only" in my document Bluetooth in Windows 7, in particular in the footnote.

alanjmcf