Offline buffer
When the internet connection drops or ConnectMQ Cloud cannot be reached, Edge switches to offline mode: it keeps reading your devices and stores every message on disk. When the link is back, it sends them in the order they were measured.
How it works
- Messages waiting to be sent are stored in a local database (
%ProgramData%\ConnectMQ\Edge\offline.db). Nothing is lost if the service restarts or the PC reboots. - Edge retries the connection, starting after 1 second and backing off up to the maximum retry interval.
- As soon as the connection is back, the buffered data is sent in batches; messages the broker acknowledges are removed from the buffer.
- New readings that arrive meanwhile are queued behind the buffered ones, so ConnectMQ never receives an older value after a newer one. When the buffer is empty, live data flows directly again.
Delivery is at least once (QoS 1): if the link drops in the middle of a batch, unacknowledged messages are sent again, so a message can rarely arrive twice. Use the timestamp field, which is the measurement time, to order and de-duplicate data.
Why Edge is offline
Edge watches Windows network events and goes offline immediately when this PC loses the internet, and reconnects immediately when it is back. The desktop app shows the reason:
| Reason | Meaning |
|---|---|
| No network | The PC has no network connection. |
| No internet | Local network, but no internet access. |
| Cloud unreachable | Internet works, but the ConnectMQ broker does not answer (firewall on 8883?). |
| Authentication | The broker rejected the credentials (deleted credentials, expired plan). |
Settings
In Settings › Cloud Settings:
| Setting | Default | Meaning |
|---|---|---|
| Offline mode | On | Off: messages are kept only in memory and lost on restart. |
| Flush interval | 5 s | How often buffered data is sent while connected. |
| Batch size | 500 | Messages per batch. |
| Max messages | 5,000,000 | Oldest messages are dropped (and logged) beyond this. 0 = unlimited. |
| Max age | 720 h (30 days) | Older messages are dropped. 0 = unlimited. |
| Max reconnect interval | 30 s | Longest wait between reconnect attempts. |
Plan limits after a long outage
Sending a large backlog uses your plan's messages per second per client and monthly traffic. Edge sends in batches, but a multi-day backlog can take a while to drain on smaller plans, and it counts towards the month's traffic. See Plans & broker limits.