telemetry

package
v0.0.0-...-f2c9a1f Latest Latest
Warning

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

Go to latest
Published: May 13, 2021 License: MIT Imports: 2 Imported by: 4

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Problem

type Problem struct {
	Type string `json:"type"`
}

Problem contains information about a certain problem (only type for now)

type ProblemReport

type ProblemReport struct {
	messaging.IoTHubMessage
	Problem Problem `json:"problem"`
}

ProblemReport is a telemetry type IoTHubMessage

func (*ProblemReport) ContentType

func (msg *ProblemReport) ContentType() string

ContentType returns the ContentType for a ProblemReport telemetry message

func (*ProblemReport) TopicName

func (msg *ProblemReport) TopicName() string

TopicName returns the correct topic name for a ProblemReport telemetry message

type Snowdepth

type Snowdepth struct {
	messaging.IoTHubMessage
	Depth float32 `json:"depth"`
}

Snowdepth is a telemetry type IoTHubMessage

func (*Snowdepth) ContentType

func (msg *Snowdepth) ContentType() string

ContentType returns the ContentType for a Snowdepth telemetry message

func (*Snowdepth) TopicName

func (msg *Snowdepth) TopicName() string

TopicName returns the correct topic name for a Snowdepth telemetry message

type Temperature

type Temperature struct {
	messaging.IoTHubMessage
	Temp float64 `json:"temp"`
}

Temperature is a telemetry type IoTHubMessage

func (*Temperature) ContentType

func (msg *Temperature) ContentType() string

ContentType returns the ContentType for a Temperature telemetry message

func (*Temperature) TopicName

func (msg *Temperature) TopicName() string

TopicName returns the name of the topic that a Temperature telemetry message should be posted to

type WaterTemperature

type WaterTemperature struct {
	messaging.IoTHubMessage
	Temp float64 `json:"temp"`
}

WaterTemperature is a telemetry type IoTHubMessage

func NewWaterTemperatureTelemetry

func NewWaterTemperatureTelemetry(temp float64, device string, lat, lon float64) *WaterTemperature

NewWaterTemperatureTelemetry creates a telemetry message from water temp data

func (*WaterTemperature) ContentType

func (msg *WaterTemperature) ContentType() string

ContentType returns the ContentType for a WaterTemperature telemetry message

func (*WaterTemperature) TopicName

func (msg *WaterTemperature) TopicName() string

TopicName returns the name of the topic that a WaterTemperature telemetry message should be posted to

Jump to

Keyboard shortcuts

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