dnp3 (.NET API) 1.1.0
dnp3.Outstation Class Reference

Outstation handle More...

Public Member Functions

void Transaction (Action< Database > callback)
 Acquire a mutex on the underlying database and apply a set of changes as a transaction More...
 
void SetDecodeLevel (DecodeLevel level)
 Set decoding log level More...
 

Static Public Member Functions

static Outstation CreateSerialSession (Runtime runtime, string serialPath, SerialSettings settings, OutstationConfig config, IOutstationApplication application, IOutstationInformation information, IControlHandler controlHandler)
 Create an outstation instance running on a serial port More...
 
static Outstation CreateSerialSessionFaultTolerant (Runtime runtime, string serialPath, SerialSettings settings, TimeSpan openRetryDelay, OutstationConfig config, IOutstationApplication application, IOutstationInformation information, IControlHandler controlHandler)
 Create an outstation instance running on a serial port which is tolerant to the serial port being added and removed More...
 

Detailed Description

Outstation handle

Use this handle to modify the internal database.

Member Function Documentation

◆ CreateSerialSession()

static Outstation dnp3.Outstation.CreateSerialSession ( Runtime  runtime,
string  serialPath,
SerialSettings  settings,
OutstationConfig  config,
IOutstationApplication  application,
IOutstationInformation  information,
IControlHandler  controlHandler 
)
inlinestatic

Create an outstation instance running on a serial port

The port is opened immediately on the calling thread and fails if not successful

Warning: Most users should prefer the fault tolerant version of the this method Outstation.CreateSerialSessionFaultTolerant

Parameters
runtimeruntime on which to spawn the outstation
serialPathPath of the serial device
settingssettings for the serial port
configoutstation configuration
applicationapplication interface
informationinformational events interface
controlHandlercontrol handler interface
Returns
Outstation instance or null if the port cannot be opened
Exceptions
ParamException

◆ CreateSerialSessionFaultTolerant()

static Outstation dnp3.Outstation.CreateSerialSessionFaultTolerant ( Runtime  runtime,
string  serialPath,
SerialSettings  settings,
TimeSpan  openRetryDelay,
OutstationConfig  config,
IOutstationApplication  application,
IOutstationInformation  information,
IControlHandler  controlHandler 
)
inlinestatic

Create an outstation instance running on a serial port which is tolerant to the serial port being added and removed

Parameters
runtimeruntime on which to spawn the outstation
serialPathPath of the serial device
settingssettings for the serial port
openRetryDelaydelay between attempts to open the serial port
configoutstation configuration
applicationapplication interface
informationinformational events interface
controlHandlercontrol handler interface
Returns
Outstation instance or null if the port cannot be opened
Exceptions
ParamException

◆ SetDecodeLevel()

void dnp3.Outstation.SetDecodeLevel ( DecodeLevel  level)
inline

Set decoding log level

Parameters
levelDecode log
Exceptions
ParamException

◆ Transaction()

void dnp3.Outstation.Transaction ( Action< Database callback)
inline

Acquire a mutex on the underlying database and apply a set of changes as a transaction

Parameters
callbackInterface on which to execute the transaction

The documentation for this class was generated from the following file: