Description, Logmonitor_ontranlogrecord(), Name – Campbell Scientific LoggerNet-SDK Software Development Kit User Manual

Page 165

Advertising
background image

Section 19. CsiLogMonitor Control Reference

Description

This event indicates an error has occurred while trying to retrieve transaction
log entries from the LoggerNet server. This event triggers when an error has
occurred that affects the method that monitors the transaction logs on the
LoggerNet server.

Table of Possible failure codes.

Enumeration Name

Value Description

lm_failure_unknown

0

Indicates that an error has occurred
but its nature is unknown

lm_failure_session_failure

1

Indicates that communication with
the LoggerNet server failed resulting
in a failed session

lm_failure_invalid_logon

2

Indicates that this control was unable
to logon to the LoggerNet server
because either the logonName or
logonPassword property is incorrect

lm_failure_server_security_
blocked

3

Indicates that the account specified
by logonName does not have
sufficient privileges to start this
transaction with the LoggerNet
server

lm_failure_unsupported_tran
saction

4

This version of the LoggerNet server
does not support this transaction

lm_invalid_log_id

5

The log ID is not valid.
Note: this ID is only used internally
by the LogMonitor control

lm_failure_server_cancelled

6

The LoggerNet server is shutting
down the connection

LogMonitor_onTranLogRecord()

Name

onTranLogRecord(Date timestatmp, String

tran_log_record)

Description

When actively monitoring the transaction log, this event is triggered when a
new log record is passed from the LoggerNet server. The transaction log entry
is a string that contains the station name, message number, and message.

19-11

Advertising