Mqtt连接返回码

17
 Connect Return code values
ValueReturn Code ResponseDescription
00x00 Connection AcceptedConnection accepted
10x01 Connection Refused, unacceptable protocol versionThe Server does not support the level of the MQTT protocol requested by the Client
20x02 Connection Refused, identifier rejectedThe Client identifier is correct UTF-8 but not allowed by the Server
30x03 Connection Refused, Server unavailableThe Network Connection has been made but the MQTT service is unavailable
40x04 Connection Refused, bad user name or passwordThe data in the user name or password is malformed
50x05 Connection Refused, not authorizedThe Client is not authorized to connect
6-255 Reserved for future use

留下一个答复

Please enter your comment!
Please enter your name here