is the maximum length of client ID in MQTT dependent upon the broker? If it's not, then what is the maximum number? If it is, then what is the typical maximum length for a client ID?
Details of the ClientId can be found in the MQTT spec here
The important section is:
The Server MAY allow ClientId’s that contain more than 23 encoded bytes. The Server MAY allow ClientId’s that contain characters not included in the list given above.
This basically sets a soft limit of 23 bytes for the ClientId given that brokers are not required to support more than 23 bytes, but some may. (The important word being MAY
as described in RFC2119)
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With