mqtt

package
v0.0.0-...-df177ff Latest Latest
Warning

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

Go to latest
Published: Sep 3, 2018 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetClient

func GetClient() MQTT.Client

func GetRoundEndTopicPath

func GetRoundEndTopicPath() string

func InitClient

func InitClient()

Types

type ActionType

type ActionType int
const (
	SET_RGB ActionType = iota
	ROLL
	ROTATE
)

func (ActionType) IsType

func (at ActionType) IsType(actionType ActionType) bool

func (*ActionType) MarshalJSON

func (at *ActionType) MarshalJSON() ([]byte, error)

func (ActionType) String

func (at ActionType) String() string

func (*ActionType) UnmarshalJSON

func (at *ActionType) UnmarshalJSON(b []byte) error

type ActionTypeTestable

type ActionTypeTestable interface {
	IsType(actionType ActionType) bool
}

type QualityOfService

type QualityOfService byte
const (
	AT_MOST_ONCE QualityOfService = iota
	AT_LEAST_ONCE
	EXACTLY_ONCE
)

type SpheroAction

type SpheroAction struct {
	ActionType ActionType        `json:"ActionType"`
	Config     map[string]uint16 `json:"Config,omitempty"`
}

func (SpheroAction) IsType

func (action SpheroAction) IsType(actionType ActionType) bool

func (SpheroAction) String

func (action SpheroAction) String() string

type TopicType

type TopicType int
const (
	POSSIBLE_ACTION_TYPES TopicType = iota
	PLANNED_ACTIONS
	AD_HOC_ACTION
	ERRORS
	ROUND_END
)

func (TopicType) GetName

func (topicType TopicType) GetName() string

Jump to

Keyboard shortcuts

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