I'm currently using the 'mqtt_client' demo from the SimpleLink CC32xx SDK - 6.10.00.05 and I'm trying to connect the C3220S to a mosquito MQTT broker on a Linux server that's running a 3rd party OS that requires the user to log in (with a user name and password)
Despite putting the correct MQTT broker address ,URL, mqtt_client_password/username and leaving the connection ports as is (1883 and 8883) I would get the following error.
[MQTT_IF::ERROR] connect failed: -111
The following MACROs in the mqtt_client_app.c file are the only ones that I've modified so far (ignore the single quote(s)
#define MQTT_CLIENT_PASSWORD 'insert_provided_MQTT_password_here'
#define MQTT_CLIENT_USERNAME 'insert_provided_MQTT_username_here'
#define MQTT_CLIENT_KEEPALIVE 0
#define MQTT_CLIENT_CLEAN_CONNECT true
#define MQTT_CLIENT_MQTT_V3_1 true
#define MQTT_CLIENT_BLOCKING_SEND true
#define MQTT_CONNECTION_FLAGS MQTTCLIENT_NETCONN_URL
#define MQTT_CONNECTION_ADDRESS 'insert_server_URL_here' //"broker.hivemq.com"
#define MQTT_CONNECTION_PORT_NUMBER 1883
#define MQTT_CONNECTION_FLAGS MQTTCLIENT_NETCONN_IP4 | MQTTCLIENT_NETCONN_SEC
#define MQTT_CONNECTION_ADDRESS 'insert_server_IP_here' //"192.168.178.67"
#define MQTT_CONNECTION_PORT_NUMBER 8883
Couldn't really find much with either the files provided in the SDK, nor 'Googling' the error code that was thrown and I'm not sure what else to do.