Skip to content

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 ​

  1. 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.
  2. Edge retries the connection, starting after 1 second and backing off up to the maximum retry interval.
  3. As soon as the connection is back, the buffered data is sent in batches; messages the broker acknowledges are removed from the buffer.
  4. 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:

ReasonMeaning
No networkThe PC has no network connection.
No internetLocal network, but no internet access.
Cloud unreachableInternet works, but the ConnectMQ broker does not answer (firewall on 8883?).
AuthenticationThe broker rejected the credentials (deleted credentials, expired plan).

Settings ​

In Settings › Cloud Settings:

SettingDefaultMeaning
Offline modeOnOff: messages are kept only in memory and lost on restart.
Flush interval5 sHow often buffered data is sent while connected.
Batch size500Messages per batch.
Max messages5,000,000Oldest messages are dropped (and logged) beyond this. 0 = unlimited.
Max age720 h (30 days)Older messages are dropped. 0 = unlimited.
Max reconnect interval30 sLongest 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.

Fully managed MQTT broker for connected devices.