Wireless Communication Library Support Forum

Frameworks => Bluetooth Framework => Topic started by: AntonM on February 16, 2012, 06:25:11 AM

Title: Problem with OnDiscoveryComplete event in service.
Post by: AntonM on February 16, 2012, 06:25:11 AM
Hi all,

I am writing windows service that must discover bluetooth devices but OnDiscoveryComplete event are not called correctly.
Some times it called with very long delay and pointer to device list is null, some times it not called.
I am using code from DiscoveryDemo to realize searching process.
Can somebody help me?
Title: Re: Problem with OnDiscoveryComplete event in service.
Post by: Mike Petrichenko on February 16, 2012, 07:55:08 AM
Hi,

Unfortunately WCL C++ Demos don't include service demo but you can take a look on BluetoothConsole demo code to find out how to use WCL in service/console. In few words: you have to have windows message loop in your application to be able to process WCL events.

If you are OK with C#/VB.NET you can take a look on ServiceDemo from WCL .NET Edition.