Documentation
¶
Index ¶
- Constants
- func CreateLocalCmdTopicLong(env *protocol.Envelope) string
- func CreateLocalCmdTopicShort(env *protocol.Envelope) string
- func CreateRemoteCloudTopic(deviceID string) string
- func CreateTelemetryTopic(deviceID, msgID string) string
- func NewAzureGwParams(deviceID, tenantID, hubName string) *routing.GwParams
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 ¶
CreateLocalCmdTopicLong constructs the local MQTT topic for receiving C2D messages from an Azure IoT Hub device.
func CreateLocalCmdTopicShort ¶
CreateLocalCmdTopicShort constructs the local MQTT topic for receiving C2D messages from an Azure IoT Hub device.
func CreateRemoteCloudTopic ¶
CreateRemoteCloudTopic constructs the remote MQTT topic for receiving C2D messages from an Azure IoT Hub device.
func CreateTelemetryTopic ¶
CreateTelemetryTopic constructs the MQTT topic for sending telemetry data to an Azure IoT Hub device.
func NewAzureGwParams ¶
NewAzureGwParams creates the gateway parameters
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.