Serial.print reason #8
-
|
Thank you for this wonderful library. I am trying to figure out how to print the reason for MQTT connection failures using Serial.print. I see the definitions in DisconnectReasons.hpp. Can you help in this regard? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 2 replies
-
|
It's simple enough by adding a public function to do so, using I guess you can do it yourself first. |
Beta Was this translation helpful? Give feedback.
-
|
You are doing great. Just missing some |
Beta Was this translation helpful? Give feedback.
You are doing great. Just missing some
;and you just have to useuint8_tcast from AsyncMqttClientDisconnectReason reason, such as