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 ¶
ContentType returns the ContentType 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