CreateFile (strCom,
GENERIC_READ | GENERIC_WRITE,
0,//exclusive access
NULL,//no security attrs
OPEN_EXISTING,//OPEN_EXISTING,
0,//| FILE_FLAG_OVERLAPPED, FILE_ATTRIBUTE_NORMAL
NULL);
Return 1, call GetLastError. Error code: 121, on the Internet to find error description: the semaphore timeout time had come, don't quite understand the specific refers to what? Looks at each ace to give directions, thank you very much!
CodePudding user response:
Now connect is all right, but the stability can not meet the requirements, your help to look at,CodePudding user response:
Xie asked I'm not very familiar with bluetoothWhether can only estimate the because of frequent close open and bluetooth or disconnected serial level process need some time to complete the cause at the time of closing, try to open the other end?
Might try to frequently open and close between increase a waiting to see whether can improve stability?
CodePudding user response:
Before I open and closed, increase a certain delay, try effect, thank you very much