C# 클래스 Gurux.DLMS.GXDLMSNotify

This class is used to send data notify and push messages to the clients.
파일 보기 프로젝트 열기: Gurux/Gurux.DLMS.Net 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
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