← All docs

Device Setup

Connect your equipment to the Dasberry Cloud MQTT broker and start streaming data.

Getting Started

Dasberry Cloud connects to your devices over MQTT, the standard lightweight messaging protocol for IoT.

1

Create a device

Add a device in the dashboard. You'll receive a Device ID and Access Token.

2

Configure MQTT

Point your device or gateway to our MQTT broker using those credentials.

3

Publish data

Send JSON to any topic. Dasberry auto-discovers your data points.

Once data flows in, you can build dashboards, set up alarms, generate reports, and query data through the REST API.

MQTT Connection

Connect your device or gateway to the Dasberry Cloud MQTT broker using the credentials from your device setup.

Connection Details

Host

mqtt.dasberry.ai

Port (plain)

1883

Port (TLS)

8883

Protocol

MQTT v3.1.1 / v5

Username

Your Device ID

Password

Your Access Token

Most industrial PLCs, RTUs, and gateways have built-in MQTT client settings where you enter these values directly. For custom integrations, here are code examples:

Python

python
import paho.mqtt.client as mqtt
import json, time

client = mqtt.Client()
client.username_pw_set(
    username="YOUR_DEVICE_ID",
    password="YOUR_ACCESS_TOKEN"
)

# Use port 8883 with TLS, or 1883 without
client.tls_set()
client.connect("mqtt.dasberry.ai", 8883)
client.loop_start()

while True:
    payload = json.dumps({
        "temperature": 23.5,
        "humidity": 61.2,
        "pressure": 1013.25
    })
    client.publish("sensors/environment", payload)
    time.sleep(10)

Node.js

javascript
const mqtt = require("mqtt");

const client = mqtt.connect("mqtts://mqtt.dasberry.ai:8883", {
  username: "YOUR_DEVICE_ID",
  password: "YOUR_ACCESS_TOKEN",
});

client.on("connect", () => {
  console.log("Connected to Dasberry Cloud");

  setInterval(() => {
    client.publish("sensors/environment", JSON.stringify({
      temperature: 22 + Math.random() * 5,
      humidity: 55 + Math.random() * 20,
    }));
  }, 10000);
});

Message Format

Publish JSON to any MQTT topic. Dasberry Cloud parses your payload automatically and stores each key as a separate data point.

JSON Object (recommended)

Each key becomes a data point. Numbers are stored as numeric values, strings as text.

json
{
  "temperature": 23.5,
  "humidity": 65,
  "status": "online",
  "battery_voltage": 3.72
}

Single Value

If the payload is a single number or string, the data key is derived from the last segment of the MQTT topic.

Topic: sensors/temperature
Payload: 23.5

-> Stored as key "temperature", value 23.5

Custom Parsers

For complex payloads (nested JSON, vendor-specific formats), you can configure custom parsers using JSONPath extraction rules in the device settings. Dasberry Cloud also includes AI-assisted parser generation that can analyze a sample payload and create the extraction rules for you.