open

open();

The open method of the JadeSerialPort class establishes a connection to a remote application or device and returns when the connection is established. The open method can be called only when the state is Disconnected (0).

The code fragment in the following example shows the use of the open method.

if bOpen.value = true then
    self.connection.open;
elseif bListen.value = true then
    statusLine1.caption := "Listening";
    self.connection.listen;
else
    self.connection.close;
endif;