balena-io-examples / balena-aws-iot-mqtt-example

Sample project showing how to connect your Balena device to a AWS IoT MQTT broker

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

For balena's current cloud integration tools, see the Provision with cloud IoT docs, aws-iot-provision repo, and cloud-relay repo.

Balena AWS IoT Example Project

This is a sample project on how to connect a balena device to a AWS IoT MQTT Broker. The main.py program subscribes to a topic called balena/payload_test while publishing to balena/payload_write_test with an incremental number every 5 seconds.

Environment Varibles:

Name Value Defaut
AWS_ENDPOINT application endpoint data.iot.us-east-1.amazonaws.com
AWS_PRIVATE_CERT thing private key encoded in base64
AWS_ROOT_CERT aws root certificate encoded in base64
AWS_THING_CERT thing certificate
AWS_PORT change in case you setup a different port 8883

About

Sample project showing how to connect your Balena device to a AWS IoT MQTT broker


Languages

Language:Python 100.0%