How Sessions are Counted:
In the HiveMQ Cloud, sessions align with concurrent MQTT client sessions. Each active MQTT session equals one connection. If a device establishes multiple sessions (with different client IDs) simultaneously, each is considered a separate connection. Counts reset to zero monthly.
Example:
Multiple Connections Within the Hour:
37 devices connecting every hour for a few minutes count as 37 connections.
Combination of Sessions:
10 devices with persistent sessions (cleanSession flag set to false) + 27 devices connecting hourly = 37 total connections.
Displaying Session Count:
The "MQTT Client Sessions" count reflects the max session count reached in the current month, resetting monthly. It doesn't show active connections but the max count reached.
For detailed cost breakdowns and session qualifications, check our pricing page and technical FAQ on the page.