Nano 33 IoT
Getting Started
Before getting started, make sure that required libraries are installed by visiting the setup page
Libraries
Include the required libraries and define objects on top of the page.
Variables
Define the required variables.
Data Structure
Qubitro currently has support for key-value paired JSON objects as a data type. Nested values are not supported yet.
An example : "{\"Temp\":33}"
Setup method
Set client id for identification
Set device id and token for authentication
Connect to the Qubitro broker
Subscribe to the topic
Set onMessage method to listen subscribed topic
loop method
Publish data to the subscribed topic
receivedMessage method
Print whenever message received
Example
The following example :
Connects to the broker
Subscribes to the topic (the device itself in this example)
Publishes data in a loop with a delay of 2 seconds.
Prints message and subscribed topic (the device itself in this example)
Example output:
✨ Support and Feedback
If you have further questions or suggestions, feel free to join 👇 -> Qubitro Community Discord via this invitation link.
Last updated
Was this helpful?