Step 1. Provision and connect a Device
Device in ThingsBoard represents a physical or virtual IoT device connected to the platform. Devices publish telemetry and attributes and can receive control commands.
In this section, you will create a device in ThingsBoard and verify its connection by publishing sample telemetry data.
Step 1.1 Create a Device
Section titled “Step 1.1 Create a Device”Create a device to act as the telemetry source.
- From the main menu, navigate to Entities ⇾ Devices.
- In the upper-right corner, click + Add device ⇾ Add new device.
- Enter a device name, for example
Thermometer. - Leave the default device profile unchanged.
- Click Add.
The device is successfully created and registered in ThingsBoard.
Step 1.2 Verify Device Connectivity
Section titled “Step 1.2 Verify Device Connectivity”ThingsBoard provides built-in connectivity examples for sending telemetry over various messaging protocols. Use them to test connectivity, validate credentials, and confirm that incoming data is received correctly.
Verify the device connection by publishing test telemetry data:
- After adding the device, the “Let’s check connectivity!” dialog opens automatically. Alternatively, open the device details page and click Check connectivity.
- Select your shell environment, preferred messaging protocol, and platform-specific client tool.
- Copy the generated command and run it in your terminal. It publishes a temperature value of
25.
Verify the Result
Section titled “Verify the Result”After successful telemetry publication:
- The device status changes from Inactive to Active.
- The published telemetry appears in the device’s Latest telemetry tab.