Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DecodeMessages ¶
func DecodeMessages(values []tlv.Value) ([]types.SML_Message, error)
DecodeMessages decodes TLV values to actual SML message types. It returns a list of messages, or an error.
func ExtractMeterData ¶
func ExtractMeterData(messages []types.SML_Message) (meter.Data, error)
ExtractMeterData extracts meter readings from SML messages. If no readings are found, for example because there is no SML_GetList.Res message, it returns empty data. An error is only returned for severe inconsistencies in the message content, such as unexpected value types or units.
func ParseValues ¶
ParseValues parses the content of an SML file into its raw TLV values. It returns a list of TLV values (which should each correspond to an SML message) or an error.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.