Installation manual
MAIN CONTROL OBJECT
25
3
3.2 METHODS
METHOD CLOSELINE
PURPOSE
Closes the serial line.
DESCRIPTION
Closes the serial line. This is the last operation the developer must do before
terminating the application. For this reason, when the CloseLine method is preceded
by the CloseNetwork one, it is advised to verify that the data collection has been
completed correctly. Proceed by checking the NetworkStatus property value. If it is
set to the NRF_NET_CLOSE=3 value (data collection completed), then, it is possible
to call the CloseLine method. (See the source code in the examples provided).
IDL
[id(9), helpstring("method CloseLine")] HRESULT CloseLine();
INPUT PARAMETERS
None
OUTPUT VALUE
None
EXAMPLE
...
‘ Set the serial line and open it
RFNCCTL.CommPort = “COM2”
RFNCCTL.BaudRate = “38400”
RFNCCTL.Timeout = 100
RFNCCTL.OpenLine
...
RFNCCTL.CloseLine
...