Kebijakan Privasi
Perjanjian Privasi dan Keamanan Data
{ "clientid": "V622-XXX-XXX","username": "sample-user","event": "client.disconnected","reason": "authentication_expired","node": "sz-h-125xm","peername": "10.0.0.1:5768","disconnected_at": 1724136603064}

$events/client_connected) to receive event messages with detailed information. For more information, refer to the Event Topics section below.Topic Name | Remarks |
$events/client_connected | The client is connected. |
$events/client_disconnected | The client is disconnected. |
$events/session_subscribed | A subscription was added to the client session. |
$events/session_unsubscribed | A subscription was removed from the client session. |
$events/certificate_registered | The client registered a device certificate. |
$events/certificate_rejected | The client device certificate was rejected. The certificate status is inactive, such as PENDING_ACTIVATION. |
$events/client_connected topic.Field | Semantics | Example Value |
clientid | Client ID, which is often a unique code such as product serial number or vehicle identification number (VIN). | 306520284186458 |
clean_start | Indicates whether the session is clean-start. | true |
connected_at | Session connection time, in milliseconds since 00:00:00 UTC on January 1, 1970. | 1717651184811 |
event | Event type. Fixed value: "client.connected". | client.connected |
keepalive | Keep-alive interval for the client, in seconds. | 60 |
node | MQTT Broker node information (IP address: port). | 10.0.0.1:1883 |
proto_ver | Protocol version 3/4/5. | 4 |
timestamp | Event occurrence time, in milliseconds since 00:00:00 UTC on January 1, 1970. | 1717651184811 |
username | Username. | sample_user |
$events/client_disconnected topic. Subscribers can inspect fields such as clientid and reason to take appropriate actions.Field | Semantics | Example Value |
clientid | Client ID, which is often a unique code such as product serial number or VIN. | 306520284186458 |
event | Event type. Fixed value: "client.disconnected". | client.disconnected |
disconnected_at | Disconnection event occurrence time, in milliseconds since 00:00:00 UTC on January 1, 1970. | 1717651184811 |
node | MQTT Broker node. | 10.0.0.1:1883 |
reason | Reason for the client disconnection. It is an enumerated field. For details, see the table Reasons for Client Disconnection below. | normal |
username | Username. | sample_user |
peername | Client network address. | IP:Port |
sockname | MQTT Broker network address. | IP:Port |
Disconnection Reason | Semantics | Recommended Solution |
normal | The server disconnected normally after receiving a DISCONNECT packet. | Normal event. Check whether client-initiated disconnections align with the business logic. For example, the client actively exits upon completing a task. |
takeovered | The client was disconnected due to another device with the same client ID logging in. | Client ID conflict. Check the client ID generation policy to ensure each online device has a unique client ID. (If it occurs occasionally, it may be an automatic recovery after a network fluctuation, and no action is required.) |
kicked | The client was forced to log out by an administrator. | Administrative action. Check the MQTT service management console or API call logs to determine which administrator or automated policy performed the force-logout action and the reason for it. |
keepalive_timeout | The MQTT Broker did not receive any interaction packets from the client within 1.5 times the keep-alive interval. | Network or client issue. 1. Check whether the device's network connection is stable. 2. Check whether the device's CPU or memory load is too high, resulting in failure to send heartbeat packets in time. 3. Under poor network conditions, you can increase the keep-alive value as needed. |
not_authenticated | Unauthenticated, similar to HTTP status code 401. | Authentication information error. Check whether the username, password, certificate, and token configured for the client are correct and whether they match the server-side configuration. |
not_authorized | Unauthorized, similar to HTTP status code 403. | Insufficient permissions. The client is authenticated but not authorized to connect or perform operations (such as publishing or subscribing to specific topics). Check the ACL policy configuration and grant the necessary permissions to this client. |
tcp_closed | TCP connection closed. | Network layer disconnected. Possible causes include device network interruption, NAT gateway timeout, or firewall policy blocking. |
ping_without_connect | The client sent a PING before sending the CONNECT packet. | Client SDK or firmware bugs. Check and fix the client's MQTT protocol implementation code to ensure it strictly adheres to the connection sequence: CONNECT > other packets. |
authentication_expired | Authentication failed. JWT, SAS, or other tokens have expired. | Credentials expired. Ensure the client program can refresh the token. |
too_many_connection | Maximum connections for the cluster or node exceeded. | Server capacity issue. 1. Contact us to upgrade your service specifications or increase the maximum connection limit. 2. Check whether any client exceptions (such as code bugs) are causing a large number of invalid connections. |
go_away | The MQTT Broker node is restarting (graceful shutdown). | Typically caused by server upgrades or maintenance. The client should implement an automatic reconnection mechanism to reconnect once the server is available. |
client_id_too_long | Max client ID limit exceeded. | The client ID exceeds the length limit. Check the ID length (MQTT limit: 23 characters) and modify the client ID generation logic. |
client_id_required | The required client ID field is missing for a persistent session connection. | Client protocol error. When CleanSession is set to false, the client ID cannot be empty. Please fix the client logic by either providing an ID or setting CleanSession to true. |
client_id_invalid | Invalid client ID. The client ID can only contain digits 0–9, lowercase letters a–z, and uppercase letters A–Z. Please modify the client ID generation logic to remove or replace invalid characters. | |
bad_will_message | Illegal will message. | Will message configuration error. Check the will message set for the client, ensure the topic and payload formats are correct, and verify that the client has permission to publish to the specified will topic. |
server_internal_error | Internal server error. | Server issue. Please contact us and provide relevant information (such as timestamp, instance ID, and client ID) to troubleshoot server issues. |
$events/session_subscribed topic.Field | Semantics | Example Value |
clientid | Client ID, which is often a unique code such as product serial number or VIN. | 306520284186458 |
event | Event type. Fixed value: "client.subscribed". | client.subscribed |
node | MQTT Broker node. | 10.0.0.1:1883 |
peerhost | Client address. | 10.0.0.1:1234 |
qos | Subscription QoS. | 0/1/2 |
timestamp | Subscription event occurrence time, in milliseconds since 00:00:00 UTC on January 1, 1970. | 1717651184811 |
topic | Subscribed topic filter. | home/# |
$events/session_unsubscribed topic.Field | Semantics | Example Value |
clientid | Client ID, which is often a unique code such as product serial number or VIN. | 306520284186458 |
event | Event type. Fixed value: "client.unsubscribed". | client.unsubscribed |
node | MQTT Broker node. | 10.0.0.1:1883 |
peerhost | Client address. | 10.0.0.1:1234 |
qos | Subscription QoS. | 0/1/2 |
timestamp | Unsubscription event occurrence time, in milliseconds since 00:00:00 UTC on January 1, 1970. | 1717651184811 |
topic | Subscribed topic filter. | home/# |
$events/certificate_registered.Field | Semantics | Example Value |
event | Event type. Fixed value: "certificate.registered". | certificate.registered |
timestamp | Disconnection event occurrence time, in milliseconds since 00:00:00 UTC on January 1, 1970. | 1717651184811 |
node | MQTT Broker node. | 10.0.0.1:1234 |
peerName | Client address (IP:port). | 10.0.0.2:1234 |
caSn | CA certificate serial number. | 7439e17052ff2edbeda4f5db379a69fd8c5f48a5 |
sn | Device certificate serial number. | 1bf2f708389ad1397628ab3c6c33b1636b7e49f5 |
commonName | Device certificate common name. | VIN-1234-5678 |
status | Device certificate status. | pending_activation/active/inactive/revoked |
certificateChainSn | Device certificate chain serial number. | 1bf2f708389ad1397628ab3c6c33b1636b7e49f5,7439e17052ff2edbeda4f5db379a69fd8c5f48a5 |
$events/certificate_rejectedField | Semantics | Example Value |
event | Event type. Fixed value: "certificate.rejected". | certificate.rejected |
timestamp | Event occurrence time, in milliseconds since 00:00:00 UTC on January 1, 1970. | 1717651184811 |
node | MQTT Broker node. | 10.0.0.1:1234 |
peerName | Client address (IP:port). | 10.0.0.2:1234 |
caSn | CA certificate serial number. | 7439e17052ff2edbeda4f5db379a69fd8c5f48a5 |
sn | Device certificate serial number. | 1bf2f708389ad1397628ab3c6c33b1636b7e49f5 |
commonName | Device certificate common name. | VIN-1234-5678 |
status | Device certificate status. | inactive/revoked/pending_activation/active |
certificateChainSn | Device certificate chain serial number. | 1bf2f708389ad1397628ab3c6c33b1636b7e49f5,7439e17052ff2edbeda4f5db379a69fd8c5f48a5 |
Rejection Reason | Semantics | Recommended Solution |
inactive | The certificate is unregistered. | |
revoked | The certificate is revoked. | Replace the certificate. The certificate has been added to the Certificate Revocation List (CRL), typically for security reasons (such as private key compromise). Please identify the revocation reason. To restore device connectivity, issue and configure a new certificate for the device. |
pending_activation | The certificate is inactive. | Activate the certificate. The certificate has been registered on the platform but has not yet been activated. Go to the console, locate the certificate, and complete the activation process to allow it to establish connections. |
Apakah halaman ini membantu?
Anda juga dapat Menghubungi Penjualan atau Mengirimkan Tiket untuk meminta bantuan.
masukan