Connect your devices
Your AI agent connects real devices to ThingsBoard, so that their data reaches your dashboards. It asks what devices you have, prepares what they need, and checks that the data arrives.
How do you connect your device?
Section titled “How do you connect your device?”- Your devices send data themselves, over MQTT, HTTP, or CoAP, like an ESP32, a Raspberry Pi, or a Shelly plug → Direct connection.
- Your devices are industrial equipment that speaks a field protocol, like Modbus → IoT Gateway.
- Your devices are LoRaWAN or other LPWAN devices → Platform integrations: an integration takes their messages from the network server.
- Your devices already send data to a cloud platform or a message broker, like AWS IoT, Azure IoT Hub, or Kafka → Platform integrations.
The agent sets up the connection for the devices in What the agent connects. For other devices, it tells you what to set up and links the guide. For details, see IoT Device Connectivity Guide.
Start the connection
Section titled “Start the connection”After the agent deploys a solution with devices, it asks Connect a real device to it? Select Yes. You can also ask at any time, like “Connect my ESP32”, “Connect my Modbus devices”, or “Connect my LoRaWAN sensor”. The agent asks what device it is and chooses the way to connect it.
What the agent connects
Section titled “What the agent connects”| Connection | Your devices | The agent prepares | Guide |
|---|---|---|---|
| Direct connection | Microcontroller boards, like ESP32; boards with an operating system, like Raspberry Pi; devices that run scripts or have built-in firmware, like a Shelly plug or a router; devices that you program yourself | The firmware, a script, or the settings for one device that sends data over HTTP, MQTT, or CoAP | Connect devices directly |
| IoT Gateway | Modbus TCP and Modbus RTU devices | The gateway, its connector, and the files that run the gateway | Connect devices through IoT Gateway |
| Platform integrations | LoRaWAN devices that use The Things Stack, ChirpStack, or LORIOT as their network server | The integration, its converter, and the steps to do in the network server | Connect LoRaWAN and LPWAN devices |
The agent looks up your device model in ThingsBoard IoT Hub. If IoT Hub has the model, the agent connects the device with it. For details, see IoT Device Library.
Other devices
Section titled “Other devices”For these devices, your AI agent tells you what to set up and links the guide:
| Connection | Your devices | What to use |
|---|---|---|
| Direct connection | LwM2M devices | LwM2M API for ThingsBoard Cloud or your own server |
| Direct connection | SNMP devices | SNMP API for ThingsBoard Cloud or your own server |
| Direct connection | Sparkplug B devices | Sparkplug API |
| IoT Gateway | OPC-UA, BACnet, BLE, CAN, KNX, OCPP, a database, a serial port, or another protocol on a local network | IoT Gateway |
| Platform integrations | LoRaWAN devices that use another network server, like ThingPark or KPN Things; Sigfox devices; NB-IoT devices that use KPN Things or IoT Creators | Integrations |
| Platform integrations | Devices that already send data to a cloud platform or a message broker, like AWS IoT, Azure IoT Hub, Kafka, or Tuya | Integrations |
Over a direct connection, the CLI connects one device at a time. To connect many of these devices at once, see Device provisioning.
Was this helpful?