Replies: 1 comment
-
client.pulbish(...., (err, packet) => {
if(err.code === 5) // not authorized
}) You can get all reason codes messages by using import { ReasonCodes } from 'mqtt' |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
When I publish message to a topic without acl, how can I catch the acl error?
The publish callback return like:
{ cmd: 'pubrel', qos: 2, messageId: 30411 }
MQTTX client can catch the error
Beta Was this translation helpful? Give feedback.
All reactions