Devices
A Device in VWire represents a physical or virtual IoT endpoint — an ESP32, Arduino, Raspberry Pi, custom gateway, or any system that communicates via MQTT.
Device lifecycle
Register → Connect → Authenticate → Publish/Subscribe → Disconnect
↑ └── MQTT CONNECT ──────── LWT ──────────────┘
└── Dashboard / API
- Register — Create a device in the dashboard (or API). Receive a unique Device Token.
- Connect — Device connects to VWire MQTT broker with
clientId = deviceToken. - Authenticate — Broker validates token; rejects unknown tokens.
- Publish/Subscribe — Device sends sensor data (publish) and receives commands (subscribe).
- Disconnect — LWT (Last Will Testament) tells the server the device went offline.
Device properties
| Property | Description |
|---|---|
| Name | Human-readable name (e.g. "Greenhouse Sensor") |
| Device Token | Secret credential used for MQTT authentication |
| Device ID | Immutable UUID assigned at creation |
| Status | Online / Offline (derived from MQTT connection) |
| Last Seen | Timestamp of last activity |
| Project | The project this device belongs to |
| Tags | Optional labels for filtering |
Device limits (by plan)
| Plan | Devices | Data points/day | Notifications |
|---|---|---|---|
| Free | 5 | 50,000 | 100/day |
| Pro | 25 | 500,000 | Unlimited |
| Enterprise | Unlimited | Unlimited | Unlimited |