balena-io-examples / balena-aws-iot-mqtt-example Goto Github PK
View Code? Open in Web Editor NEWSample project showing how to connect your Balena device to a AWS IoT MQTT broker
Sample project showing how to connect your Balena device to a AWS IoT MQTT broker
The current implementation requires users to convert the certificates or keys to base64 string and set that using environment variables.
It would provide a better UX if users can simply upload the files they download.
Failure to run mqtt_client.connect(). Here's the stack trace...
10.11.21 22:54:21 (-0500) aws_iot MQTT Thing Starting... 10.11.21 22:54:21 (-0500) aws_iot Traceback (most recent call last): 10.11.21 22:54:21 (-0500) aws_iot File "src/main.py", line 61, in <module> 10.11.21 22:54:21 (-0500) aws_iot mqtt_client.connect() 10.11.21 22:54:21 (-0500) aws_iot File "/usr/local/lib/python3.6/site-packages/AWSIoTPythonSDK/MQTTLib.py", line 513, in connect 10.11.21 22:54:21 (-0500) aws_iot return self._mqtt_core.connect(keepAliveIntervalSecond) 10.11.21 22:54:21 (-0500) aws_iot File "/usr/local/lib/python3.6/site-packages/AWSIoTPythonSDK/core/protocol/mqtt_core.py", line 196, in connect 10.11.21 22:54:21 (-0500) aws_iot self.connect_async(keep_alive_sec, self._create_blocking_ack_callback(event)) 10.11.21 22:54:21 (-0500) aws_iot File "/usr/local/lib/python3.6/site-packages/AWSIoTPythonSDK/core/protocol/mqtt_core.py", line 223, in connect_async 10.11.21 22:54:21 (-0500) aws_iot raise e 10.11.21 22:54:21 (-0500) aws_iot File "/usr/local/lib/python3.6/site-packages/AWSIoTPythonSDK/core/protocol/mqtt_core.py", line 211, in connect_async 10.11.21 22:54:21 (-0500) aws_iot rc = self._internal_async_client.connect(keep_alive_sec, ack_callback) 10.11.21 22:54:21 (-0500) aws_iot File "/usr/local/lib/python3.6/site-packages/AWSIoTPythonSDK/core/protocol/internal/clients.py", line 122, in connect 10.11.21 22:54:21 (-0500) aws_iot rc = self._paho_client.connect(host, port, keep_alive_sec) 10.11.21 22:54:21 (-0500) aws_iot File "/usr/local/lib/python3.6/site-packages/AWSIoTPythonSDK/core/protocol/paho/client.py", line 665, in connect 10.11.21 22:54:21 (-0500) aws_iot return self.reconnect() 10.11.21 22:54:21 (-0500) aws_iot File "/usr/local/lib/python3.6/site-packages/AWSIoTPythonSDK/core/protocol/paho/client.py", line 826, in reconnect 10.11.21 22:54:21 (-0500) aws_iot ciphers=self._tls_ciphers) 10.11.21 22:54:21 (-0500) aws_iot File "/usr/local/lib/python3.6/ssl.py", line 1158, in wrap_socket 10.11.21 22:54:21 (-0500) aws_iot ciphers=ciphers) 10.11.21 22:54:21 (-0500) aws_iot File "/usr/local/lib/python3.6/ssl.py", line 748, in __init__ 10.11.21 22:54:21 (-0500) aws_iot self._context.load_verify_locations(ca_certs) 10.11.21 22:54:21 (-0500) aws_iot ssl.SSLError: unknown error (_ssl.c:3732)
I am unable to get the build process to accept #5. VersionBot fails with the message below:
Command failed: versionist
No such file or directory: /tmp/tmp-25-z5K6JVRx2DXb/package.json
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.