Corascript.serverport, Name, Description – Campbell Scientific LoggerNet-SDK Software Development Kit User Manual
Page 73: Com return values, 2 methods, Corascript.executescript()

Section 15. CsiCoraScript Control Reference
CoraScript.serverPort
Name
CoraScript.serverPort As Long
Description
Specifies the TCP port number that the LoggerNet server is using on the
hosting computer. The valid range for this property is port 1 to port 65535.
The default value for this property is port 6789, which is the default port
number assigned for the LoggerNet server. The default value for this property
will connect to a LoggerNet server port in most cases.
COM Return Values
Table of Possible Values
Code Meaning
S_OK
Success: Normal return
E_CSI_INVALIDARG Error: The port value is out of range or invalid
E_CSI_BUSY
Error: Attempt to set serverPort while connected
to the LoggerNet server
15.1.2 Methods
CoraScript.executeScript()
Name
CoraScript.executeScript(String script, Long asychID)
As String
Description
This method allows CoraScript commands to be executed by the LoggerNet
server. Pass the CoraScript command in as the first parameter and use the
second parameter to determine whether the method performs asynchronously
or synchronously. If you want this command to execute synchronously, pass in
a zero (0) for the asyncID. If an asyncID other than zero (0) is specified, the
onScriptComplete() event will be triggered with the result and the asyncID that
was specified.
COM Return Values
Table of Possible Values
Code Meaning
S_OK
Success: Normal return
E_CSI_FAIL Error: Unexpected Error
15-3