Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type GetDataRequest ¶
type GetDataRequest struct{}
type GetDataResponse ¶
type GetDataResponse struct { Status string `json:"status,omitempty"` Runtime int `json:"runtime,omitempty"` Id int `json:"id,omitempty"` HumidityValue float32 `json:"humidity_value,omitempty"` HumidityUnit string `json:"humidity_unit,omitempty"` TemperatureValue float32 `json:"temperature_primary_value,omitempty"` TemperatureUnit string `json:"temperature_primary_unit,omitempty"` PressureValue float32 `json:"pressure_value,omitempty"` PressureUnit string `json:"pressure_unit,omitempty"` TemperatureBackupValue float32 `json:"temperature_secondary_value,omitempty"` TemperatureBackupUnit string `json:"temperature_secondary_unit,omitempty"` AltitudeValue float32 `json:"altitude_value,omitempty"` AltitudeUnit string `json:"altitude_unit,omitempty"` IlluminanceValue float32 `json:"illuminance_value,omitempty"` IlluminanceUnit string `json:"illuminance_unit,omitempty"` WeatherShieldMoistureValue float32 `json:"weathershield_moisture_value,omitempty"` WeatherShieldMoistureUnit string `json:"weathershield_moisture_unit,omitempty"` Timestamp int64 `json:"timestamp,omitempty"` }
The time-series data structure used to store all the data that will be returned by the `Mikapod WeatherShield` Arduino device.
type MikapodWeatherShieldReaderService ¶
func New ¶
func New(addr string) *MikapodWeatherShieldReaderService
func (*MikapodWeatherShieldReaderService) GetData ¶
func (s *MikapodWeatherShieldReaderService) GetData() (*GetDataResponse, error)
Click to show internal directories.
Click to hide internal directories.