DlmsFrameParse_GetResponse(ByteBuffer, Int32, Byte, DlmsDataResult, UInt32) Method

Parses DLMS GET response and returns attribute values. If this method returned false, the response is not complete and it is needed to request further data blocks. It can be done by sending request composed by Create_GetRequestNext method. Parsing begins at position index in rawData.

Definition

Namespace: OddPrg.Protocols.DLMS
Assembly: OddPrg.Frames.Dlms (in OddPrg.Frames.Dlms.dll) Version: 2.0.0.24 (2.0.0.24)
C#
public static bool Parse_GetResponse(
	ByteBuffer rawData,
	ref int index,
	out byte invokeIdAndPriority,
	out DlmsDataResult[] results,
	out uint blockNumber
)

Parameters

rawData  ByteBuffer
Response raw data to parse.
index  Int32
Index in rawData.
invokeIdAndPriority  Byte
It can be parsed with InvokeIdAndPriority.Parse method.
results  DlmsDataResult
Returned results. One for response-rormal and response-with-data-block. One or more for response-with-list.
blockNumber  UInt32
In the case of returning value False (block transfer) it returns received block number. In the case of returning value True this parameter has no meaning and returns zero.

Return Value

Boolean
False if server returned response-with-data-block and it was not the last block. Otherwise True.

Remarks

Abstract syntax of Get-Response in in GB page 206. [196] IMPLICIT GET-Response Get-Response ::= CHOICE { get-response-normal [1] IMPLICIT Get-Response-Normal, get-response-with-datablock [2] IMPLICIT Get-Response-With-Datablock, get-response-with-list [3] IMPLICIT Get-Response-With-List }

See Also