IoTCore Handling Errors

I’m using the following library Google IoT Core | Dev Center

I’m running error codes that I cannot seem to find in the source or on the library pages.

-1 and 5

I’ve checked the MQTT page aswell and nothing to be found. Can I get a list of the error codes and what they mean?

Trying to get some R&D done with your imp006m. Hopefully, I can get some feedback soon.

5 is an ‘authorisation failed’ error and -1 is a generic socket error (maybe remote close), so it’s worth checking the authentication and registration notes here:

https://developer.electricimp.com/libraries/cloudservices/googleiotcore#authentication-and-registration

The error codes are listed in the onconnect page:

https://developer.electricimp.com/api/mqtt/mqttclient/onconnect