dnp3  0.9.0
Public Member Functions | Static Public Member Functions | List of all members
dnp3.Request Class Reference

Custom request More...

Public Member Functions

 Request ()
 Create a new request More...
 
void AddOneByteHeader (Variation variation, byte start, byte stop)
 Add a one-byte start/stop variation interrogation More...
 
void AddTwoByteHeader (Variation variation, ushort start, ushort stop)
 Add a two-byte start/stop variation interrogation More...
 
void AddAllObjectsHeader (Variation variation)
 Add an all objects variation interrogation More...
 

Static Public Member Functions

static Request ClassRequest (bool class0, bool class1, bool class2, bool class3)
 Create a new request asking for classes More...
 

Detailed Description

Custom request

Whenever a method takes a request as a parameter, the request is internally copied. Therefore, it is possible to reuse the same requests over and over.

Constructor & Destructor Documentation

◆ Request()

dnp3.Request.Request ( )
inline

Create a new request

Returns
Handle to the created request

Member Function Documentation

◆ AddAllObjectsHeader()

void dnp3.Request.AddAllObjectsHeader ( Variation  variation)
inline

Add an all objects variation interrogation

Parameters
variationVariation to ask for

◆ AddOneByteHeader()

void dnp3.Request.AddOneByteHeader ( Variation  variation,
byte  start,
byte  stop 
)
inline

Add a one-byte start/stop variation interrogation

Parameters
variationVariation to ask for
startStart index to ask
stopStop index to ask (inclusive)

◆ AddTwoByteHeader()

void dnp3.Request.AddTwoByteHeader ( Variation  variation,
ushort  start,
ushort  stop 
)
inline

Add a two-byte start/stop variation interrogation

Parameters
variationVariation to ask for
startStart index to ask
stopStop index to ask (inclusive)

◆ ClassRequest()

static Request dnp3.Request.ClassRequest ( bool  class0,
bool  class1,
bool  class2,
bool  class3 
)
inlinestatic

Create a new request asking for classes

An identical request can be created manually with Request.AddAllObjectsHeader and variations Variation.Group60Var1, Variation.Group60Var2, Variation.Group60Var3 and Variation.Group60Var4.

Parameters
class0Ask for class 0 (static data)
class1Ask for class 1 events
class2Ask for class 2 events
class3Ask for class 3 events
Returns
Handle to the created request

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