rpc_client

package
v0.0.0-...-3b43f22 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 3, 2021 License: BSD-3-Clause Imports: 3 Imported by: 0

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

type MikapodWeatherShieldReaderService struct {
	Client *rpc.Client
}

func (*MikapodWeatherShieldReaderService) GetData

func (*MikapodWeatherShieldReaderService) Greet

Perform a synchronous call on our remote service for the `Greet` RPC.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL