Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Conductivity ¶
type Conductivity uint16
func (Conductivity) MarshalJSON ¶
func (c Conductivity) MarshalJSON() ([]byte, error)
func (Conductivity) String ¶
func (c Conductivity) String() string
func (Conductivity) Value ¶
func (c Conductivity) Value() float64
type Firmware ¶
func (*Firmware) UnmarshalBinary ¶
UnmarshalBinary implements encoding.BinaryUnmarshaler.
type Measurement ¶
type Measurement struct { Temperature *Temperature `json:"temperature"` Moisture *uint8 `json:"moisture"` Brightness *uint16 `json:"brightness"` Conductivity *Conductivity `json:"conductivity"` }
func (*Measurement) UnmarshalBinary ¶
func (m *Measurement) UnmarshalBinary(r io.Reader) error
type Temperature ¶
type Temperature int16
func (*Temperature) MarshalJSON ¶
func (t *Temperature) MarshalJSON() ([]byte, error)
func (Temperature) String ¶
func (t Temperature) String() string
func (Temperature) Value ¶
func (t Temperature) Value() float64
Click to show internal directories.
Click to hide internal directories.