DlmsTypeOctetString Class

Represents octet-string type (tag 0x09) as it is defined in BB 4.1.5. An ordered sequence of octets (8 bit bytes)

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 class DlmsTypeOctetString : DlmsTypeSimple
Inheritance
Object    DlmsType    DlmsTypeSimple    DlmsTypeOctetString

Constructors

DlmsTypeOctetString Paramaterless constructor used by XmlSerializer
DlmsTypeOctetString(ByteBuffer) Creates a new instance of DlmsTypeOctetString using raw data retured from a server (meter).
DlmsTypeOctetString(String) Creates a new instance of DlmsTypeOctetString using ascii string.

Properties

TypeName Returns name of the type according to BB 4.1.5.
(Overrides DlmsTypeTypeName)
ValueAsASCIIString Returns a ASCII representation of octet-string value for displaying.
ValueAsDateTime If it is possible returns a dat/time representation of the value.
(Inherited from DlmsType)
ValueAsDouble If it is possible returns a number representation of the value. It could be applied also for integer values.
(Inherited from DlmsType)
ValueAsInvariantString Returns a string representation of octet-string value.
(Overrides DlmsTypeSimpleValueAsInvariantString)
ValueAsRawData Returns value as bytes that can be sent to the server (meter).
(Overrides DlmsTypeSimpleValueAsRawData)
ValueAsString Returns a string representation of octet-string value for displaying.
(Overrides DlmsTypeValueAsString)
ValueDotDivided Returns string representation of the value, each byte as decimal string divided by dots.
ValueIsDateTime This property should return true if ValueAsDateTime is available, otherwise it should return false.
(Inherited from DlmsType)
ValueIsMax Returns true if the value is equal to its maximal possible value which can indicate null for some meter types.
(Inherited from DlmsType)
ValueIsNumber This property should return true if ValueAsDouble is available, otherwise it should return false. It indicated if this value can be stored and treated as number.
(Inherited from DlmsType)
ValueObis Returns value in OBIS format if it is possible. If value contains 6 bytes it returns 1-2:3.4.5.6 obis code, otherwise it returns bytes divided with dots.

Methods

ParseValueDotDivided Parses the value of octet string using dot splitted numbers.
ParseValueObis Parses the value of octet string using OBIS format A-B:C.D.E.F.
ToString Returns string representation of the value. It returns ValueAsString.
(Inherited from DlmsType)

Fields

TYPE_ID COSEM type ID

See Also