internal

package
v0.0.0-...-2de8bae Latest Latest
Warning

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

Go to latest
Published: Sep 10, 2019 License: BSD-3-Clause Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetAuthorizationBearerToken

func GetAuthorizationBearerToken() string

func GetSensorIdFromInstrumentId

func GetSensorIdFromInstrumentId(instrumentId int32) int64

func GetTenantId

func GetTenantId() int64

Types

type MikapodRemote

type MikapodRemote struct {
	// contains filtered or unexported fields
}

func InitMikapodRemote

func InitMikapodRemote(mikapodStorageAddress string, mikaponicsRemoteServiceAddress string) *MikapodRemote

Function will construct the Mikapod Remote application.

func (*MikapodRemote) RunMainRuntimeLoop

func (app *MikapodRemote) RunMainRuntimeLoop()

Function will consume the main runtime loop and run the business logic of the Mikapod Remote application.

func (*MikapodRemote) StopMainRuntimeLoop

func (app *MikapodRemote) StopMainRuntimeLoop()

Function will tell the application to stop the main runtime loop when the process has been finished.

type TimeSeriesData

type TimeSeriesData struct {
	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"`
	SoilMoistureValue      float32              `json:"soil_moisture_value,omitempty"`
	SoilMoistureUnit       string               `json:"soil_moisture_unit,omitempty"`
	Timestamp              *timestamp.Timestamp `json:"timestamp,omitempty"`
}

The time-series data structure used to store all the data that will be returned by the `Mikapod Soil` Arduino device.

type TimeSeriesDatum

type TimeSeriesDatum struct {
	Id         int64
	Instrument int32
	Value      float64
	Timestamp  *timestamp.Timestamp
}

The time-series datum structure used to store the instrument datum of a single reading.

Jump to

Keyboard shortcuts

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