My Onion Omega2+ threw an error when trying to connect to Losant using the Single Command connection. I’m using this tutorial from Onion’s 2-Bullet Tuesday newsletter which explains how to setup Losant and Omega to connect.
In the middle of the tutorial, there is a one-line script that will complete the setup and connect the Omega to the Losant application that was previously set up. When i entered the script into my Omega:
mosquitto_sub -t losant/[YOUR-DEVICE-ID]/command, it threw an error:
Error: Connection refused.
In a different thread, I was told that I needed to enter my Device ID, Access Key, and Access Secret, which I did do as instructed by the tutorial:
How do I fix this error?