C# Class Gurux.DLMS.GXDLMSNotify

This class is used to send data notify and push messages to the clients.
Afficher le fichier Open project: Gurux/Gurux.DLMS.Net Class Usage Examples

Protected Properties

Свойство Type Description
Settings GXDLMSSettings

Private Properties

Свойство Type Description
AddData void

Méthodes publiques

Méthode Description
AddData ( GXDLMSObject obj, int index, GXByteBuffer buff ) : void

Add value of COSEM object to byte buffer.

AddData method can be used with GetDataNotificationMessage -method. DLMS spesification do not specify the structure of Data-Notification body. So each manufacture can sent different data.

GXDLMSNotify ( bool useLogicalNameReferencing, int clientAddress, int serverAddress, InterfaceType interfaceType ) : Gurux.DLMS.Enums

Constructor

GenerateDataNotificationMessages ( System.DateTime time, GXByteBuffer data ) : byte[][]

Generates data notification message(s).

GenerateDataNotificationMessages ( System.DateTime time, int>.List objects ) : byte[][]

Generates data notification message.

GenerateDataNotificationMessages ( System.DateTime time, byte data ) : byte[][]

Generates data notification message(s).

GeneratePushSetupMessages ( System.DateTime date, GXDLMSPushSetup push ) : byte[][]

Generates push setup message.

GetData ( GXByteBuffer reply, GXReplyData data ) : bool

Removes the HDLC frame from the packet, and returns COSEM data only.

ParsePush ( Object data ) : int>>.List

Private Methods

Méthode Description
AddData ( GXDLMSSettings settings, GXDLMSObject obj, int index, GXByteBuffer buff ) : void

Add value of COSEM object to byte buffer.

AddData method can be used with GetDataNotificationMessage -method. DLMS spesification do not specify the structure of Data-Notification body. So each manufacture can sent different data.

Method Details

AddData() public méthode

Add value of COSEM object to byte buffer.
AddData method can be used with GetDataNotificationMessage -method. DLMS spesification do not specify the structure of Data-Notification body. So each manufacture can sent different data.
public AddData ( GXDLMSObject obj, int index, GXByteBuffer buff ) : void
obj Gurux.DLMS.Objects.GXDLMSObject COSEM object.
index int Attribute index.
buff GXByteBuffer Byte buffer.
Résultat void

GXDLMSNotify() public méthode

Constructor
public GXDLMSNotify ( bool useLogicalNameReferencing, int clientAddress, int serverAddress, InterfaceType interfaceType ) : Gurux.DLMS.Enums
useLogicalNameReferencing bool Is Logical or short name referencing used.
clientAddress int Client address. Default is 0x10
serverAddress int
interfaceType InterfaceType Interface type. Default is general.
Résultat Gurux.DLMS.Enums

GenerateDataNotificationMessages() public méthode

Generates data notification message(s).
public GenerateDataNotificationMessages ( System.DateTime time, GXByteBuffer data ) : byte[][]
time System.DateTime Date time. Set To Min or Max if not added
data GXByteBuffer Notification body.
Résultat byte[][]

GenerateDataNotificationMessages() public méthode

Generates data notification message.
public GenerateDataNotificationMessages ( System.DateTime time, int>.List objects ) : byte[][]
time System.DateTime Date time. Set To Min or Max if not added
objects int>.List List of objects and attribute indexes to notify.
Résultat byte[][]

GenerateDataNotificationMessages() public méthode

Generates data notification message(s).
public GenerateDataNotificationMessages ( System.DateTime time, byte data ) : byte[][]
time System.DateTime Date time. Set To Min or Max if not added
data byte Notification body.
Résultat byte[][]

GeneratePushSetupMessages() public méthode

Generates push setup message.
public GeneratePushSetupMessages ( System.DateTime date, GXDLMSPushSetup push ) : byte[][]
date System.DateTime Date time. Set To Min or Max if not added.
push Gurux.DLMS.Objects.GXDLMSPushSetup Target Push object.
Résultat byte[][]

GetData() public méthode

Removes the HDLC frame from the packet, and returns COSEM data only.
public GetData ( GXByteBuffer reply, GXReplyData data ) : bool
reply GXByteBuffer /// The received data from the device. ///
data GXReplyData /// Information from the received data. ///
Résultat bool

ParsePush() public méthode

public ParsePush ( Object data ) : int>>.List
data Object
Résultat int>>.List

Property Details

Settings protected_oe property

DLMS settings.
protected GXDLMSSettings,Gurux.DLMS Settings
Résultat GXDLMSSettings