p1_parser v0.2.2 P1.Channel
Contains the medium and channel of the data
The medium cam be :abstract
, :electricity
, :heat
, :gas
, :water
, the channel always 0 for the meter itself and higher numbers for modbus connected devices
to transform the medium from an integer to the atom, one can use the construct method on the struct
iex> P1.Channel.construct(1,0)
%P1.Channel{channel: 0, medium: :electricity}
Link to this section Summary
Link to this section Functions
Link to this function
construct(arg1, channel)