256dpi / arduino-mqtt

MQTT library for Arduino
MIT License
1.01k stars 232 forks source link

Explanations on error codes? #230

Closed EllisTheEllice closed 3 years ago

EllisTheEllice commented 3 years ago

Hi together, I am not 100% sure if this is the right place for my question. When I try to connect to my MQTT broker (AWS IoT endpoint), I receive a -3 as lastError. I have looked this up and have seen, that this is called LWMQTT_NETWORK_FAILED_CONNECT . Is there any explanation out there that explains what that error code means and how to solve that? Many thanks!

256dpi commented 3 years ago

There is currently not further details on errors like these. There are simply not standardize error codes over all Arduino platforms. If possible, looking at the logs on the broker side may reveal more information.