beautypg.com

3 openipport(), Syntax, Parameters – Campbell Scientific BMP5 Direct SDK User Manual

Page 12: Return codes, 4 closeipport(), 5 getclock()

background image

Section 2. SimplePB.DLL Reference

2.3 OpenIPPort()

Opens an IP port to allow a connection to a datalogger.

Syntax

OpenIPPort(ip_address, tcp_port)

Parameters

ip_address: String – A valid IP address for the datalogger.

tcp_port: Integer – The port that will be used when communicating with the
datalogger.

Return Codes

0 = Successful.
-1 = IP port failed to open or is already open.

2.4 CloseIPPort()

Closes the previously opened IP port.

Syntax

CloseIPPort()

Return Codes

0 = Successful.
-1 = IP port failed to close or was not open.

2.5 GetClock()

Query the datalogger for its current date and time.

Syntax

GetClock(pakbus_address, device_type, return_data, return_data_len)

Parameters

pakbus_address: Integer – The PakBus address of the datalogger.

2-2