How to set password and port at MQTT sample program?

Hi,

I am using the MQTT example program from SDKv2.4.2 as base. How do I set password and port number? There is no option. There is only an option to set the username. I am trying to connect to CloudMQTT broker.

https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/nrf/samples/net/mqtt/README.html

Regards,

Markel

Parents Reply
  • Hi Sigurd,

    I gave up connecting to CloudMQTT that requires username and password. I just connect to Beebotte MQTT that requires only username. 

    I have read several posts in this forum that they added username and password and it worked but that is for older nRF7002 DK SDKs or using nRF9160.

    I think you have an issue with MQTT library for nRF7002 DK that requires username and password. You can try it at your side. 

    I have connected to CloudMQTT using MQTTBox at Windows so it works. I entered the username and password at MQTTBox.

    Anyway, I have moved on with this issue.

    Regards,

    Markel

Children
No Data
Related