beautypg.com

Campbell Scientific CR3000 Micrologger User Manual

Page 523

background image

Appendix A. CRBasic Programming Instructions

523

 

IPTrace 
Writes IP debug messages to a string variable. 

Syntax 

IPTrace(Dest)

NetworkTimeProtocol 
Synchronizes the datalogger clock with an Internet time server. 

Syntax 

variable = NetworkTimeProtocol(NTPServer, NTPOffset,

NTPMaxMSec)

PingIP 
Pings IP address. 

Syntax 

variable = PingIP(IPAddress, Timeout)

PPPOpen 
Establishes a PPP connection with a server. 

Syntax 

variable = PPPOpen

PPPClose 
Closes an opened PPP connection with a server. 

Syntax 

variable = PPPClose

TCPClose 
Closes a TCP/IP socket that has been set up for communication. 

Syntax 

TCPClose(TCPSocket)

TCPOpen 
Sets up a TCP/IP socket for communication. 

Syntax 

TCPOpen(IPAddr, TCPPort, TCPBuffer)

UDPDataGram 
Sends packets of information via the UDP communications protocol. 

Syntax 

UDPDataGram(IPAddr, UDPPort, SendVariable, SendLength,

RcvVariable, Timeout)

UDPOpen 
Opens a port for transferring UDP packets. 

Syntax 

UDPOpen(IPAddr, UDPPort, UDPBuffsize)

WebPageBegin / WebPageEnd 
Declares a web page that is displayed when a request for the defined HTML page 
comes from an external source. 

Syntax 

WebPageBegin

("WebPageName", WebPageCmd)