Create a ThingsBoard device

To publish our distance sensor data to ThingsBoard, we first need to create a ThingsBoard Device:

  1. Log in to your account at https://demo.thingsboard.io/login
  2. Click on Devices, and then the large orange + sign at the bottom-right corner of the screen:
  1. Type in RobotEyes for the Name, leave the Device type as default, and put in a meaningful description under Description
  2. Click ADD
  3. Click on RobotEyes to get a menu sliding out from the right
  4. Click COPY ACCESS TOKEN to copy the token onto your clipboard
  5. Paste the token into a text file

For our code, we will be using the MQTT protocol. If the Paho MQTT library has ...

Get Internet of Things Programming Projects now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.