Sml.File (SmlEx v0.1.0)

Copy Markdown View Source

A decoded SML file: the messages contained in one telegram.

A typical telegram from a meter contains an Sml.Messages.OpenResponse, a Sml.Messages.GetListResponse with the current readings and an Sml.Messages.CloseResponse.

Summary

Functions

Returns the bodies of all messages.

Types

t()

@type t() :: %Sml.File{messages: [Sml.Message.t()]}

Functions

bodies(file)

@spec bodies(t()) :: [Sml.Message.body()]

Returns the bodies of all messages.