The SiliconWit.io broker

The broker your devices send their readings to. Encrypted and recorded.

Connect with MQTT, MQTT-SN, CoAP or HTTPS. Each device signs in with its own ID and token, and every reading goes into your siliconwit.io record.

Already have an account? Sign in and open Devices.

Connection

Host
mqtt.siliconwit.io
Port
8883 TLS
Username
Device IDfrom your account
Password
Access Tokenfrom your account
Send
d/{id}/t
Listen
d/{id}/c

Ways to connect

Pick the one your device can speak

All of them use the same Device ID and Access Token, and land in the same record.

MQTT over TLS

8883TLS

Devices on WiFi or Ethernet: ESP32, Raspberry Pi, gateways, PLC bridges.

The usual choice. Start here.

MQTT over WebSocket

8084WSS

Web pages and apps that need live readings in the browser.

MQTT-SN

1885DTLS1884plain

Battery and cellular devices that send small packets over UDP.

Use 1885. Plain 1884 is only for devices that cannot do DTLS.

CoAP

5683not encrypted

Very low power devices on NB-IoT and other LPWAN links.

Need encryption over UDP? Use MQTT-SN on 1885.

HTTPS

443TLS

Any device or script that can send a POST request. No MQTT library needed.

POST /api/devices/ingest

One key per device

per-device token

A device may use only its own topics. Anything else closes the connection, so one lost device never exposes the others.

How a reading travels

Readings go up. Commands come back.

Three topics, all named after the device. Nothing else is allowed.

Your device ESP32, Pi, gateway, PLC bridge mqtt.siliconwit.io checks the ID and token Your account record, rules, alerts readings d/{id}/t commands d/{id}/c reply d/{id}/k/{session} readings d/{id}/t commands d/{id}/c reply d/{id}/k/{session} Your device ESP32, Pi, gateway, PLC bridge mqtt.siliconwit.io checks the ID and token Your account record, rules, alerts readings d/{id}/t commands d/{id}/c reply d/{id}/k/… readings d/{id}/t commands d/{id}/c reply d/{id}/k/…
Readings, device to accountCommands, account to deviceReply that a command ran

Connect

From box to first reading in four steps

  1. Add the deviceIn siliconwit.io, open Devices and choose Add device.
  2. Copy its two keysThe Device ID is the username. The Access Token is the password.
  3. Send a readingConnect to mqtt.siliconwit.io:8883 and publish JSON to d/{id}/t.
  4. Set a ruleChoose the value that matters and how you hear about it: email, push, SMS, Slack, Discord, Telegram or a webhook.
Python, paho-mqtt
import json, ssl, time
import paho.mqtt.client as mqtt

DEVICE_ID = "SWD-XXXXXX"      # from your account
ACCESS_TOKEN = "your-token"    # from your account

client = mqtt.Client(
    callback_api_version=mqtt.CallbackAPIVersion.VERSION2,
    client_id=DEVICE_ID,
)
client.username_pw_set(DEVICE_ID, ACCESS_TOKEN)
client.tls_set(tls_version=ssl.PROTOCOL_TLS_CLIENT)
client.connect("mqtt.siliconwit.io", 8883, keepalive=60)
client.loop_start()

while True:
    reading = {"temperature": 24.6, "humidity": 58}
    client.publish(f"d/{DEVICE_ID}/t", json.dumps(reading), qos=1)
    time.sleep(10)

The rules

What the broker accepts

ItemRule
Sign-inDevice ID as username, Access Token as password. One pair per device.
Topicsd/{id}/t readings, d/{id}/c commands, d/{id}/k/{session} replies. No others.
PayloadJSON, up to 10 KB, 50 top-level keys and 2 levels of nesting.
Quality of serviceQoS 0 or 1. Use 1 when a missed reading matters.
EncryptionTLS on 8883, 8084 and 443. DTLS on 1885. Ports 1884 and 5683 are plain.
CertificateA public certificate for mqtt.siliconwit.io, renewed automatically.

Connect your first device today

Start with 3 devices and 7 days of history at $0. Move up when you need more.