Hi Mike, good day :
I'm making a PC tool which can connect to a BT ear phone accessory, and the connection is a SPP connection.
In some causes, not sure the root cause, tool fails to connect to accessory and the error code is 43. I tried to reconnect few times w/ a 2000ms sleep, but still got error 43 after each retry.
m_Client.Connect();
Sleep(2000);
m_Client.Connect();
Sleep(2000);
m_Client.Connect();
Sleep(2000);
...
The accessory engineer told me that I should close the socket before retry. So :
1. Before I call CwclClient::Connect() again, should I close socket? How(in WCL lib, while programming, the BT socket is almost transparent to me) ?
2. What's the general suggestion from you when we encounter error 43 (how can we retry, how can we dig out the root cause instantly...) ?
Thanks a lot.