![]() |
dnp3 (.NET API) 1.5.2
|
Outstation handle More...
Public Member Functions | |
void | Enable () |
enable communications More... | |
void | Disable () |
disable communications More... | |
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) |
This method is implemented in terms of Outstation.CreateSerialSession2 but without a port listener More... | |
static Outstation | CreateSerialSession2 (Runtime runtime, string serialPath, SerialSettings settings, TimeSpan openRetryDelay, OutstationConfig config, IOutstationApplication application, IOutstationInformation information, IControlHandler controlHandler, IPortStateListener portListener) |
Create an outstation instance running on a serial port which is tolerant to the serial port being added and removed More... | |
static Outstation | CreateTcpClient (Runtime runtime, LinkErrorMode linkErrorMode, EndpointList endpoints, ConnectStrategy connectStrategy, ConnectOptions connectOptions, OutstationConfig config, IOutstationApplication application, IOutstationInformation information, IControlHandler controlHandler, IClientStateListener listener) |
Create an outstation instance running as a TCP client More... | |
static Outstation | CreateTlsClient (Runtime runtime, LinkErrorMode linkErrorMode, EndpointList endpoints, ConnectStrategy connectStrategy, ConnectOptions connectOptions, OutstationConfig config, IOutstationApplication application, IOutstationInformation information, IControlHandler controlHandler, IClientStateListener listener, TlsClientConfig tlsConfig) |
Create an outstation instance running as a TLS client More... | |
Outstation handle
Use this handle to modify the internal database.
|
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
runtime | runtime on which to spawn the outstation |
serialPath | Path of the serial device |
settings | settings for the serial port |
config | outstation configuration |
application | application interface |
information | informational events interface |
controlHandler | control handler interface |
null
if the port cannot be openedParamException |
|
inlinestatic |
Create an outstation instance running on a serial port which is tolerant to the serial port being added and removed
runtime | runtime on which to spawn the outstation |
serialPath | Path of the serial device |
settings | settings for the serial port |
openRetryDelay | delay between attempts to open the serial port |
config | outstation configuration |
application | application interface |
information | informational events interface |
controlHandler | control handler interface |
portListener | port state listener |
null
if the port cannot be openedParamException |
|
inlinestatic |
This method is implemented in terms of Outstation.CreateSerialSession2 but without a port listener
runtime | runtime on which to spawn the outstation |
serialPath | Path of the serial device |
settings | settings for the serial port |
openRetryDelay | delay between attempts to open the serial port |
config | outstation configuration |
application | application interface |
information | informational events interface |
controlHandler | control handler interface |
null
if the port cannot be openedParamException |
|
inlinestatic |
Create an outstation instance running as a TCP client
runtime | runtime on which to spawn the outstation |
linkErrorMode | Controls how link errors are handled with respect to the TCP session |
endpoints | List of IP endpoints. |
connectStrategy | Controls the timing of (re)connection attempts |
connectOptions | Options that control the TCP connection process |
config | outstation configuration |
application | application interface |
information | informational events interface |
controlHandler | control handler interface |
listener | Connection listener used to receive updates on the status of the connection |
ParamException |
|
inlinestatic |
Create an outstation instance running as a TLS client
runtime | runtime on which to spawn the outstation |
linkErrorMode | Controls how link errors are handled with respect to the TCP session |
endpoints | List of IP endpoints. |
connectStrategy | Controls the timing of (re)connection attempts |
connectOptions | Options that control the TCP connection process |
config | outstation configuration |
application | application interface |
information | informational events interface |
controlHandler | control handler interface |
listener | Connection listener used to receive updates on the status of the connection |
tlsConfig | TLS client configuration |
ParamException |
|
inline |
disable communications
ParamException |
|
inline |
enable communications
ParamException |
|
inline |
Set decoding log level
level | Decode log |
ParamException |
|
inline |
Acquire a mutex on the underlying database and apply a set of changes as a transaction
callback | Interface on which to execute the transaction |