Microchip® Advanced Software Framework

mqtt_data_sock_connected Struct Reference

Structure of the MQTT_CALLBACK_SOCK_CONNECTED callback.

#include <mqtt.h>

Data Fields

int result
 Result of operation. More...
 

int mqtt_data_sock_connected::result

Result of operation.

Returns
-ENOENT No such address.
-EINVAL Invalid argument.
-ENOSPC No space left on device.
-EIO Device was occurred error due to unknown exception.
-EDESTADDRREQ Destination address required.
-ECONNRESET Connection reset by peer.
-EAGAIN Try again.
-EBUSY Device or resource busy.
-EADDRINUSE Address already in use.
-EALREADY Socket already connected.
-ENOTCONN Service in bad state.
-ECONNREFUSED Connection refused.
-EOVERFLOW Value too large for defined data type.
-EBADMSG Not a data message.

Referenced by mqtt_callback(), and mqtt_connect().