Hi Ti Expert,
I have MSP-EXP432 development board www.ti.com/.../MSP-EXP432E401Y. And I want to connect this board with local mqtt
I started local mqtt broker (mosquitto:- https://mosquitto.org/)
It's running successfully. It checked by MQTTbox app.(mqttbox.en.softonic.com/)
What is changes are require in MQTTclient example ?
(C:\ti\simplelink_msp432e4_sdk_4_20_00_12\examples\rtos\MSP_EXP432E401Y\ns\mqttclient)
I am using Firewall.
for testing, I done some changes in mqtt_client_app.c file.
Changes in:- mqtt_clinet_app.c
#define SERVER_ADDRESS "localhost" //1
or
#define SERVER_IP_ADDRESS "127.0.0.1" //2
And
MQTTClient_ConnParams Mqtt_ClientCtx = {
MQTTCLIENT_NETCONN_URL, // 1
SERVER_ADDRESS, // 1
PORT_NUMBER, 0, 0, 0, NULL
};
Or
MQTTClient_ConnParams Mqtt_ClientCtx = {
MQTTCLIENT_NETCONN_IP4, //2
SERVER_IP_ADDRESS, //2
PORT_NUMBER, 0, 0, 0, NULL
};
Note:- only one option is uncomment 1 or 2
if using "localhost" -> uncomment 1 and comment 2 option
if using "127.0.0.1" -> uncomment 2 and comment 1 option
But still not connect with local mosqitto mqtt broker.
Got Error:- Trigger this event "MQTTClient_DISCONNECT_CB_EVENT"
And print "BRIDGE DISCONNECTION".
If anything else missing in change, please correct inform me.
Thanks in advance
Regards,
Darshan