command
module
Version:
v0.0.0-...-f9331be
Opens a new window with list of versions in this module.
Published: Jun 25, 2019
License: Apache-2.0
Opens a new window with license information.
Imports: 8
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
README
¶
helloworld-go-mqtt-awsiot
Steps
-
install golang
-
create thing, cert & policy in AWS IoT and download certificate and private key
-
create config file (conf.json)
{
"host": "YOUR-AWS-IOT-ENDPOINT-HERE-ats.iot.eu-west-1.amazonaws.com",
"port": 8883,
"caCert": "AmazonRootCA1.pem",
"clientCert": "YOUR-CERT-HERE-certificate.pem.crt",
"privateKey": "YOUR-PRIVATE-KEY-HERE-e7c08dd12d-private.pem.key"
}
-
build
go build
-
run (you might want to create test subscription to "go-mqtt/sample" in the AWS IoT web console)
./helloworld-go-mqtt-awsiot -conf conf.json -client-id testclient
Sources partially "borrowed" from here
Documentation
¶
There is no documentation for this package.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.