HdlcFrameGetNext(ByteBuffer) Method

Returns the next frame of type 3 from the start of rawData. Procedure skips any starting bytes before starting flag (7E).

Definition

Namespace: OddPrg.Protocols.Hdlc
Assembly: OddPrg.Frames.Hdlc (in OddPrg.Frames.Hdlc.dll) Version: 1.0.0.2 (1.0.0.2)
C#
public static ByteBuffer GetNext(
	ByteBuffer rawData
)

Parameters

rawData  ByteBuffer
Data received from a server (meter).

Return Value

ByteBuffer
Returns a HDLC frame from the beginning of data. If data does not start with a valid HDLC frame, it returns null.

See Also