Ruby
Quick guide for Ruby library.
Getting Started
Visit the MQTT overview page for conventions, authentication, and more information.
This library is open-source so you can check it out on GitHub.
Install the packages
Import Libraries
Then import it and initialize it with the required packages. Of course, you’ll want to replace DEVICE_ID
and DEVICE_TOKEN
with your actual device credentials which you can find under your device settings on Qubitro Portal.
Define Variables
Setup MQTT Client
Minimum configuration required to connect to the broker.
Advanced configuration
Prepare Data
Examples
We strongly recommend using the 8883 port for MQTT over TLS connectivity.
Publish
Subscribe
Last updated
Was this helpful?