routing

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: May 28, 2024 License: Apache-2.0, EPL-2.0 Imports: 4 Imported by: 1

Documentation

Index

Constants

View Source
const (
	// StatusConnectionNotAuthorized defines a not authorized connection status.
	StatusConnectionNotAuthorized = "CONNECTION_NOT_AUTHORIZED"
	// StatusConnectionTokenExpired defines a token expired connection status.
	StatusConnectionTokenExpired = "CONNECTION_TOKEN_EXPIRED"
)

Variables

This section is empty.

Functions

func CreateLocalCmdTopicLong

func CreateLocalCmdTopicLong(env *protocol.Envelope) string

CreateLocalCmdTopicLong constructs the local MQTT topic for receiving C2D messages from an Azure IoT Hub device.

func CreateLocalCmdTopicShort

func CreateLocalCmdTopicShort(env *protocol.Envelope) string

CreateLocalCmdTopicShort constructs the local MQTT topic for receiving C2D messages from an Azure IoT Hub device.

func CreateRemoteCloudTopic

func CreateRemoteCloudTopic(deviceID string) string

CreateRemoteCloudTopic constructs the remote MQTT topic for receiving C2D messages from an Azure IoT Hub device.

func CreateTelemetryTopic

func CreateTelemetryTopic(deviceID, msgID string) string

CreateTelemetryTopic constructs the MQTT topic for sending telemetry data to an Azure IoT Hub device.

func NewAzureGwParams

func NewAzureGwParams(deviceID, tenantID, hubName string) *routing.GwParams

NewAzureGwParams creates the gateway parameters

Types

This section is empty.

Directories

Path Synopsis
bus
message

Jump to

Keyboard shortcuts

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