checkCom
Declaration
Delphi
procedure checkCom(Com : Byte; var PadType : shortstring);
C/C++
SOPAD_API void SOPAD_checkCom(unsigned char nComPort, char szPadType[SOPAD_MAX_STRING_LENGTH]);
Description
Important: this function is obsolete.
This procedure checks the (virtual) com port and returns the type of pad that is connected to that port as a string. It listens for up to 2 seconds on the serial port before it gives up. Note that this calls SetCom internally and therefore changes the com port that is used by the StartRead procedure.
You don't have to use this procedure if you use getPadSettings and setPadsettings.
Arguments
Com, nComPort
Serial port number to check.
PadType
Output parameter. Pad type connected to serial port.
Can be one of 'LEPadS', 'LEPadBT', 'LEPadUSB', '+PadS', '+PadBT', '+PadUSB' or 'bluePad'.