awsiotdev

package module
v4.2.0 Latest Latest
Warning

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

Go to latest
Published: Feb 10, 2021 License: Apache-2.0 Imports: 5 Imported by: 0

README

aws-iot-device-sdk-go

Go Reference ci codecov License

Package awsiotdev implements AWS IoT presigned WebSockets dialer for github.com/at-wat/mqtt-go, and AWS IoT functionalities.

Documentation

Overview

Package awsiotdev implements AWS IoT presigned WebSockets dialer for github.com/at-wat/mqtt-go, and AWS IoT functionalities.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewDialer

func NewDialer(sess client.ConfigProvider, urlStr string, opts ...mqtt.DialOption) (mqtt.Dialer, error)

NewDialer creates default dialer for the given URL for AWS IoT. Supported protocols are mqtts and wss (with presigned URL).

func NewPresignDialer

func NewPresignDialer(sess client.ConfigProvider, endpoint string, opts ...mqtt.DialOption) (mqtt.Dialer, error)

NewPresignDialer returns WebSockets Dialer with AWS v4 presigned URL.

Types

type Device

type Device interface {
	mqtt.Client
	ThingName() string
}

Device is an AWS IoT device.

func New

func New(thingName string, dialer mqtt.Dialer, opts ...mqtt.ReconnectOption) (Device, error)

New creates AWS IoT device interface.

Directories

Path Synopsis
examples
internal
Package jobs implements AWS IoT Jobs API.
Package jobs implements AWS IoT Jobs API.
Package presigner implements AWS v4 presigner wrapper for AWS IoT websocket connection.
Package presigner implements AWS v4 presigner wrapper for AWS IoT websocket connection.
msg

Jump to

Keyboard shortcuts

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