Documentation ¶
Overview ¶
Package dsmr implements DSMR P1 frame reading.
The DSMR 4 specification can be found at: http://www.netbeheernederland.nl/
A frame is formatted as:
/ X X X 5 Identification CR LF CR LF Data ! CRC CR LF
Index ¶
Constants ¶
View Source
const DateTimeFormat = "060102150405"
DateTimeFormat used in a frame, YYMMDDhhmmssX localtime with last as S/W for Summer/Winter
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DataObject ¶
DataObject represents a line in the DSMR frame.
func ParseObject ¶
func ParseObject(line string) (DataObject, error)
ParseObject returns a object for a given line in a frame.
func (DataObject) String ¶
func (do DataObject) String() string
Directories ¶
Path | Synopsis |
---|---|
Package prometheus implements a collector of DSMR metrics for Prometheus.
|
Package prometheus implements a collector of DSMR metrics for Prometheus. |
Click to show internal directories.
Click to hide internal directories.