dnp3 (.NET API) 1.1.0
|
Custom request More...
Public Member Functions | |
Request () | |
Create a new request More... | |
void | AddOneByteRangeHeader (Variation variation, byte start, byte stop) |
Add a one-byte start/stop variation interrogation More... | |
void | AddTwoByteRangeHeader (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... | |
void | AddOneByteLimitedCountHeader (Variation variation, byte count) |
Add a one-byte limited count variation interrogation More... | |
void | AddTwoByteLimitedCountHeader (Variation variation, ushort count) |
Add a two-byte limited count 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... | |
static Request | AllObjects (Variation variation) |
Create a new request asking for all objects of a particular variation. More... | |
static Request | OneByteRange (Variation variation, byte start, byte stop) |
Create a new request asking for range of objects (using 8-bit start/stop). More... | |
static Request | TwoByteRange (Variation variation, ushort start, ushort stop) |
Create a new request asking for range of objects (using 16-bit start/stop). More... | |
static Request | OneByteLimitedCount (Variation variation, byte count) |
Create a new request asking for a limited count of objects (using 8-bit start/stop). More... | |
static Request | TwoByteLimitedCount (Variation variation, ushort count) |
Create a new request asking for a limited count of objects (using 16-bit start/stop). More... | |
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.
|
inline |
Create a new request
|
inline |
Add an all objects variation interrogation
variation | Variation to ask for |
|
inline |
Add a one-byte limited count variation interrogation
variation | Variation to ask for |
count | Maximum number of events |
|
inline |
Add a one-byte start/stop variation interrogation
variation | Variation to ask for |
start | Start index to ask |
stop | Stop index to ask (inclusive) |
|
inline |
Add a two-byte limited count variation interrogation
variation | Variation to ask for |
count | Maximum number of events |
|
inline |
Add a two-byte start/stop variation interrogation
variation | Variation to ask for |
start | Start index to ask |
stop | Stop index to ask (inclusive) |
Create a new request asking for all objects of a particular variation.
An identical request can be created manually with Request.Request() and Request.AddAllObjectsHeader.
variation | Variation to ask for |
|
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.
class0 | Ask for class 0 (static data) |
class1 | Ask for class 1 events |
class2 | Ask for class 2 events |
class3 | Ask for class 3 events |
Create a new request asking for a limited count of objects (using 8-bit start/stop).
An identical request can be created manually with Request.Request() and Request.AddOneByteLimitedCountHeader.
variation | Variation to ask for |
count | Maximum number of events |
|
inlinestatic |
Create a new request asking for range of objects (using 8-bit start/stop).
An identical request can be created manually with Request.Request() and Request.AddOneByteRangeHeader.
variation | Variation to ask for |
start | Start index to ask |
stop | Stop index to ask (inclusive) |
Create a new request asking for a limited count of objects (using 16-bit start/stop).
An identical request can be created manually with Request.Request() and Request.AddTwoByteLimitedCountHeader.
variation | Variation to ask for |
count | Maximum number of events |
|
inlinestatic |
Create a new request asking for range of objects (using 16-bit start/stop).
An identical request can be created manually with Request.Request() and Request.AddTwoByteRangeHeader.
variation | Variation to ask for |
start | Start index to ask |
stop | Stop index to ask (inclusive) |