This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

MSP-EXP432E401Y: Issue with MQTT Client Example

Part Number: MSP-EXP432E401Y
Other Parts Discussed in Thread: UNIFLASH

Hi everyone,

I want to run the mqtt client example on my MSP-EXP432E401Y

So i've import the project to CCS, and connect the MCU port ethernet with the Ethernet wall socket. When i debugg i have this issue : "DHCP Client initialization failed; check your network."

In mqtt_client_app.c, i didn't change the code. The broker is test.mosquitto.org and service ip adresse : "192.168.178.67"

in mqttclient.syscfg, i tried to add a dhcp server but i had the same issue : 

If anyone knows how to make it work, it would be much appreciated.

Best regards,

Jalal

  • Hi,

    in mqttclient.syscfg, i tried to add a dhcp server but i had the same issue :

    This example assumes there is a DHCP server on your network. Please check with your IT department if where is the DHCP server on your network and make sure there is no firewall blocking. I will also suggest you try on a different network such as your home network for experiment. The example should work out of box. Please refer to this similar post where I was able to run the example as is. I use either test.mosquitto.org or 91.121.93.94 as the SERVER_ADDRESS. Both works. 91.121.93.94 is the IP address for test.mosquitto.org. You can try the direct IP address 91.121.93.94 if there is an issue to find DNS server on your network. 

    //#define SERVER_ADDRESS "test.mosquitto.org"
    #define SERVER_ADDRESS "91.121.93.94"

    I use https://mxtoolbox.com/ to look up the IP address. You can try it too as there may be other IP address that is for your region. 

    Please refer to README.html in the project directory for details. 

    Example Usage

    • Connect an Ethernet cable to the Ethernet port on the device.

    • The device must be connected to a network with a DHCP server to run this example successfully.

    • Build the project and flash it by using the Uniflash tool, or equivalently, load the device via a debug session on the IDE of your choice.

    • Open a serial port session (e.g. ‘HyperTerminal’,‘puTTY’, ‘Tera Term’ etc.) to the appropriate COM port - listed as ‘User UART’. The COM port can be determined via Device Manager in Windows or via ls /dev/tty* in Linux.