Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Frame ¶
type Frame struct { Time time.Time `gorm:"time"` // TotalActiveEnergy in watt per hour TotalActiveEnergy int `gorm:"total_active_energy"` // InstantApparentPower in VA InstantApparentPower int `gorm:"instant_apparent_power"` // InstantApparentInjectedPower in VA InstantApparentInjectedPower int `gorm:"instant_apparent_injected_power"` }
type RawFrame ¶
type RawFrame struct { TotalActiveEnergy string `json:"EAST"` InstantApparentPower string `json:"SINSTS"` InstantApparentInjectedPower string `json:"SINSTI"` }
func (*RawFrame) SetDefaults ¶
func (r *RawFrame) SetDefaults()
Click to show internal directories.
Click to hide internal directories.