The MQTT protocol Client ID cannot be longer than 23 characters (MQTTEXCEPTION:MQISDP ClientId > x bytes)

Source: Internet
Author: User

Encounter an MQTT problem today, MQTTEXCEPTION:MQISDP ClientId > bytes

The ClientID is longer than 23 o'clock and cannot be linked to an MQTT server.

After viewing protocol discovery:Client Identifier (Client ID) is between1and the ata unique identifier for the client-to-server character length. It must be in the search for a client to connect to a server is unique, is in the processingQoSlevel1and the2the messageIDin the key. If the clientIDinclude atcharacters, server responseCONNECTmessage, through aCONNACK, return code2: The identifier was rejected.

This is described in the English original agreement:


e No, it seems that the beginning version has a 23-character limit, and later versions can be more than 23 characters.

However, the latest Mosquitto only support to 3.1.1, helpless can only change the rules of ClientID, not more than 23 characters.




The MQTT protocol Client ID cannot be longer than 23 characters (MQTTEXCEPTION:MQISDP ClientId > x bytes)

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.