Wireless Communication Library Support Forum

Frameworks => Bluetooth Framework => Topic started by: Cuningan on June 16, 2009, 11:22:01 AM

Title: wclOPPClient.Terminate();
Post by: Cuningan on June 16, 2009, 11:22:01 AM
Hello Mike, i hace two or three questions about wclOPPClient.

When i call Terminate i see that the connection is closed but i am not sure if the methods raise on_disconnect even...

And when connection timeout happen the called even is on_connect with the e.error  yes or not?

And thank you four your helpo yesterday i have finished my application in 1 evening.
Title: Re: wclOPPClient.Terminate();
Post by: Mike Petrichenko on June 16, 2009, 11:32:34 AM
Hi,

It depends on target device how it processes Termination. Some of them do not close a connection, some do. If device closes a connection OnDisconnect will fire any way (if connection was already established).

Yes, when Timeout happened during connection then OnConnect with fire with e.error contained WCL_E_TIMEOUT.

You are very welcome.