Connect Your Magicblocks.Io App With Thingsboard

by magicbit in Circuits > Mobile

5 Views, 0 Favorites, 0 Comments

Connect Your Magicblocks.Io App With Thingsboard

_jkt98P4tRC.jpg

In this project we will be sending various sensor data to thingsboard.

Supplies

Story

ThingsBoard is an open-source server-side platform that allows you to monitor and control IoT devices. It is free for both personal and commercial usage and you can deploy it anywhere. If this is your first experience with the platform we recommend to review what-is-thingsboard page and getting-started guide.

This sample project will allow you to send data from your phone to thingsboard. Receiving data from thingsboard will be discussed in another project.

On the Thingsboard Side

capture_vo8KC36AzT.jpg

Create a device with any name you like. On the credentials tab either you can generate a random access token or create your own access token. It is up to you to decide.

On the App Side

whatsapp_image_2020-12-10_at_11_34_47_pm_7Avr5bnJ4l.jpeg

Open the settings page of the app and fill the fields.In the username field enter the Access Token you have entered for your device.

Hostname, port and publish topic are the other necessary fields. After all is done click save and connect the app to MQTT. If all goes well you will be notified as 'connected'. After that click on the sensor you want to send the data to get them from the thingsboard server.