Crate teleinfo_nom

Crate teleinfo_nom 

Source
Expand description

§teleinfo-nom

A lib to parse teleinfo (french power provider)

Modules§

parser

Structs§

TeleinfoDate
TeleinfoDate struct represents a date sent in a teleinfo message in standard mode
TeleinfoMessage
Representation of a full message from teleinfo
TeleinfoValue
TeleinfoValue represents the value and date of a message line from Teleinfo

Enums§

TeleinfoMessageType
TeleinfoMessageType describes if the message is a short message or a normal message
TeleinfoMeterType
TeleinfoMeterType describes if the meter is monophasé or triphase
TeleinfoMode
Describes the mode of a Teleinfo message

Functions§

get_message
Read message from an readable object source, with leftover being the unparsed string from a previous call Returns a tuple with to be parsed in a next call string as leftover and the first found TeleinfoMessage
get_message_buf
Read message from an readable object source bufferized, with leftover being the unparsed string from a previous call Returns a tuple with data to be parsed in a next call string as leftover and the first found TeleinfoMessage