C# Класс Gurux.DLMS.GXDLMSNotify

This class is used to send data notify and push messages to the clients.
Показать файл Открыть проект Примеры использования класса

Защищенные свойства (Protected)

Свойство Тип Описание
Settings GXDLMSSettings

Private Properties

Свойство Тип Описание
AddData void

Открытые методы

Метод Описание
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

Приватные методы

Метод Описание
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.

Описание методов

AddData() публичный Метод

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.
Результат void

GXDLMSNotify() публичный Метод

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.
Результат Gurux.DLMS.Enums

GenerateDataNotificationMessages() публичный Метод

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.
Результат byte[][]

GenerateDataNotificationMessages() публичный Метод

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.
Результат byte[][]

GenerateDataNotificationMessages() публичный Метод

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.
Результат byte[][]

GeneratePushSetupMessages() публичный Метод

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.
Результат byte[][]

GetData() публичный Метод

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. ///
Результат bool

ParsePush() публичный Метод

public ParsePush ( Object data ) : int>>.List
data Object
Результат int>>.List

Описание свойств

Settings защищенное свойство

DLMS settings.
protected GXDLMSSettings,Gurux.DLMS Settings
Результат GXDLMSSettings