Skip to content

Commit

Permalink
Add two phase massage types
Browse files Browse the repository at this point in the history
  • Loading branch information
ringvold committed Jul 30, 2019
1 parent 1f2180a commit 4756987
Showing 1 changed file with 33 additions and 0 deletions.
33 changes: 33 additions & 0 deletions lib/han_ams/Lists.ex
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,39 @@ defmodule HanAms.Lists do
:act_energy_mr
]
end

defmodule TwoFasesMessageType2 do
defstruct [
:obis_list_version,
:gs1,
:meter_model,
:act_pow_pos,
:act_pow_neg,
:react_pow_pos,
:react_pow_neg,
:curr_l1,
:volt_l1
]
end

defmodule TowFasesMessageType3 do
defstruct [
:obis_list_version,
:gs1,
:meter_model,
:act_pow_pos,
:act_pow_neg,
:react_pow_pos,
:react_pow_neg,
:curr_l1,
:volt_l1,
:datetime,
:act_energy_pos,
:act_energy_neg,
:react_energy_pos,
:react_energy_neg
]
end
end

# type BaseItem struct {
Expand Down

0 comments on commit 4756987

Please sign in to comment.