The OnOpenClose event occurs when other application opens or closes virtual serial port.

OnOpenClose(

      BOOL Opened     // Port state

);

 

Parameters:

  • Opened [out] : Determines the state change of virtual serial port. This parameter can be any of the following values:

    ValueMeaning
    TRUEPort was opened
    FALSEPort was closed