---
title: "ThingsBoard demo for Industruino"
url: "https://maker.wiznet.io/gemma/projects/thingsboard-demo-for-industruino/"
markdown_url: "https://maker.wiznet.io/gemma/projects/thingsboard-demo-for-industruino/md"
type: "UCC: User Created Content"
author: "Tom"
author_url: "https://industruino.com/blog/our-news-1/post/thingsboard-demo-for-industruino-37"
editor: "WIZnet"
editor_url: "https://maker.wiznet.io/"
original_author: "Tom"
original_url: "https://industruino.com/blog/our-news-1/post/thingsboard-demo-for-industruino-37"
published: "2023-01-31"
language: "en"
hardware: ["Arduino Industruino Proto Kit"]
likes: 7
views: 396
comments: 0
source: "WIZnet Makers (https://maker.wiznet.io/)"
---

# ThingsBoard demo for Industruino

> Manage your Industruino devices with this open-source IoT platform

Original author: Tom (source: https://industruino.com/blog/our-news-1/post/thingsboard-demo-for-industruino-37)

## Components

- **Arduino Industruino Proto Kit** x 1 ([docs](https://industruino.com/shop/product/industruino-proto-d21g-8))
- Software: **ThingsBoard**

## Article

![](https://industruino.com/website/image/ir.attachment/16116_9bd2d91/datas)

![](https://industruino.com/website/image/ir.attachment/16119_04ed5ac/datas)

Serial Monitor on the left shows the output when the Industruino is successfully connected to Thingsboard. It sends the dummy data every 3 seconds, and receives the RPC instructions.

The [SDK] messages are printed by the Thingsboard library so you need to modify this to SerialUSB for use with Industruino.

The Industruino shows the last instruction of the control knob, and the LCD backlight.

![](https://industruino.com/website/image/ir.attachment/16121_bc83b9b/datas)

This is the sketch for the Industruino D21G, be sure to modify your TOKEN. It uses the unique MAC address stored in the RTC chip, and gets an IP address via DHCP.

```c
/*
  Basic Thingsboard example for Industruino D21G

  Industruino PROTO or INDIO with Ethernet module
  > upload this sketch after modifying your own TOKEN (different from below industruino_test1)
  > the sketch creates 2 random data streams temperature/humidity
  > the sketch receives instructions from the dashboard: lcd backlight on/off and analog knob value

  Thingsboard.io:
  > create an account on live-demo
  > create a device 'industruino' with credentials: unique access token (different from below industruino_test1)
  > create a dashboard
  > edit dashboard, click on 'entity aliases', add alias: name 'industruino', filter type 'single entity', type 'device', device 'industruino'
  > go back to device > latest telemetry > watch the 2 values for humidity and temperature being updated
  > device > latest telemetry > check box of 1 value and click 'show on widget' to add to your dashboard
  for RPC (remote procedure calls)
  > manually add switch and knob, and attach the functions in tab 'advanced'
  switch: RPC set value method = example_set_switch
  knob: set value method = example_set_dial, and get value method = example_get_dial (requires modifying Thingsboard.cpp, comment out lines 183-185 "params" check)
*/

#include <SPI.h>              // for Ethernet
#include <Ethernet2.h>        // Industruino version of Ethernet2
#include <Wire.h>             // for RTC MAC
byte mac[6] ;                 // use Industruino unique MAC
EthernetClient ethClient;

#include "ThingsBoard.h"
#define TOKEN               "industruino_test1"   // TO BE REPLACED BY YOUR OWN TOKEN
#define THINGSBOARD_SERVER  "demo.thingsboard.io"
ThingsBoard tb(ethClient);

#include <UC1701.h>           // LCD screen
static UC1701 lcd;
```

---

Source: https://maker.wiznet.io/gemma/projects/thingsboard-demo-for-industruino/
