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.

CC3235MODAS: MQTT Connection Using Hostname

Part Number: CC3235MODAS

Hi,

I am using the mqtt_client demo code as reference. As given in MQTTClient_ConnParams server address should be either in URL or IP form and it working fine, but on client site there is a local server for that we have to use the hostname as DNS server not available. 

const char *serverAddr; /**< Server Address: URL or IP */

Is there any way to use the hostname instead of domain/ip for secure mqtt connection?

Thanks

  • Hi,

    If you talk about about hostname from DHCP Option 12, how do you expect that this hostanme will be translated to local IP address? Only commonly used way is do this via DNS.

    Another option can be use ZeroConf protocol like mDNS, LLMNR or own protocol. mDNS is natively supported by CC32xx devices, but it is supported by your local MQTT server? If your server is running at Windows it should support LLMNR, but you will need to implement LLMNR into CC32xx by yourself.

    Jan

  • Hi Jan D,

    Thanks for the information.