Skip to content

Cookie preferences

We use cookies for our own analytics, to see how our campaigns perform and, if you allow it, to load content from other services such as the Google site search. We never sell your data. Necessary cookies keep the site working and cannot be switched off. See our Cookie Policy for details and our Privacy Policy for how we handle personal data.

Security, load balancing and remembering your cookie choice.

Show us which pages people read, how they find the site and where they get stuck, so we can improve it (Google Analytics, Microsoft Clarity).

Show us which of our ad campaigns bring visitors to the site and remember the campaign or partner link you arrived from (Google Ads, LinkedIn, Meta, partner program). We do not use these cookies to build advertising profiles.

Load the site search from Google when you use it. Google sets its own cookies and shows ads in the search results.

© 2026 The ThingsBoard Authors

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.

  • 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.

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.

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.

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.