deviceshifumqtt

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Oct 8, 2022 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const (
	MqttDataEndpoint          string = "mqtt_data"
	DefaultUpdateIntervalInMS int64  = 3000
)

Str and default value

Variables

This section is empty.

Functions

This section is empty.

Types

type DeviceCommandHandlerMQTT

type DeviceCommandHandlerMQTT struct {
	// client                         *rest.RESTClient
	HandlerMetaData *HandlerMetaData
}

DeviceCommandHandlerMQTT handler for Mqtt

type DeviceShifu

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

DeviceShifu implemented from deviceshifuBase

func New

func New(deviceShifuMetadata *deviceshifubase.DeviceShifuMetaData) (*DeviceShifu, error)

New new MQTT Deviceshifu

func (*DeviceShifu) Start

func (ds *DeviceShifu) Start(stopCh <-chan struct{}) error

Start start Mqtt Telemetry

func (*DeviceShifu) Stop

func (ds *DeviceShifu) Stop() error

Stop Stop Http Server

type HandlerMetaData

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

HandlerMetaData MetaData for EdgeDevice Setting

type ReturnBody

type ReturnBody struct {
	MQTTMessage   string `json:"mqtt_message"`
	MQTTTimestamp string `json:"mqtt_receive_timestamp"`
}

ReturnBody Body of mqtt's reply

Jump to

Keyboard shortcuts

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