Author Topic: wclOPPClient.Terminate();  (Read 12490 times)

Cuningan

  • Guest
wclOPPClient.Terminate();
« 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.

Offline Mike Petrichenko

  • Bluetooth Framework Developer
  • Administrator
  • Hero Member
  • *****
  • Posts: 3675
  • Karma: 1000
    • Wireless Communication Libraries
Re: wclOPPClient.Terminate();
« Reply #1 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.

 

Sitemap 1 2 3 4 5 6 7