Monday, 30 September 2013

Bluetooth Programming with Windows Sockets - Device in range

Bluetooth Programming with Windows Sockets - Device in range

I'm trying to use Windows Sockets to discover BT device in range. I'm
using the this MSDN article for that.
The code works and I'm getting devices info by call to
WSALookupServiceNext(...).
The device information is provided by the WSAQUERYSETW struct.
How do I know if the device is in range based on the data from the
WSAQUERYSETW struct?
I can check if WSAQUERYSETW::dwOutputFlags is having one of the following
flags:
BTHNS_RESULT_DEVICE_CONNECTED
BTHNS_RESULT_DEVICE_AUTHENTICATED
BTHNS_RESULT_DEVICE_REMEMBERED
And if device is CONNECTED, thus, it definitely in range, but what about
other states?
What exactly REMEMBERED state is?

No comments:

Post a Comment