<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://devzone.nordicsemi.com/cfs-file/__key/system/syndication/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>How to set password and port at MQTT sample program?</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/104755/how-to-set-password-and-port-at-mqtt-sample-program</link><description>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</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 27 Oct 2023 23:02:43 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/104755/how-to-set-password-and-port-at-mqtt-sample-program" /><item><title>RE: How to set password and port at MQTT sample program?</title><link>https://devzone.nordicsemi.com/thread/452858?ContentTypeID=1</link><pubDate>Fri, 27 Oct 2023 23:02:43 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e52d422b-c519-4ff1-993a-1e5ba3988580</guid><dc:creator>mtrobregado</dc:creator><description>&lt;p&gt;Hi Sigurd,&lt;/p&gt;
&lt;p&gt;I gave up connecting to CloudMQTT that requires username and password. I just connect to Beebotte MQTT that requires only username.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I have read&amp;nbsp;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.&lt;/p&gt;
&lt;p&gt;I think you have an issue with MQTT library for nRF7002 DK that requires username and password. You can try it at your side.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I have connected to CloudMQTT using MQTTBox at Windows so it works. I entered the username and password at MQTTBox.&lt;/p&gt;
&lt;p&gt;Anyway, I have moved on with this issue.&lt;/p&gt;
&lt;p&gt;Regards,&lt;/p&gt;
&lt;p&gt;Markel&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to set password and port at MQTT sample program?</title><link>https://devzone.nordicsemi.com/thread/452458?ContentTypeID=1</link><pubDate>Thu, 26 Oct 2023 08:41:46 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f65475bd-88c8-45bd-9409-12de87e43abf</guid><dc:creator>Sigurd</dc:creator><description>&lt;p&gt;Hi!&lt;/p&gt;
[quote user="mtrobregado"]But, I am not able to connect to CloudMQTT.[/quote]
&lt;p&gt;What error codes are you getting? Any logs to share?&lt;/p&gt;
[quote user="mtrobregado"]I don&amp;#39;t understand why the mqtt helper is incomplete library. Maybe not intended for connection to MQTT broker that requires username and password.[/quote]
&lt;p&gt;Yes, the password support is missing. We are checking with the developers of this library if there are plans to&amp;nbsp;&lt;span&gt;&lt;span dir="ltr"&gt;adding&amp;nbsp;password support to the mqtt_helper library.&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;span dir="ltr"&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to set password and port at MQTT sample program?</title><link>https://devzone.nordicsemi.com/thread/450929?ContentTypeID=1</link><pubDate>Wed, 18 Oct 2023 00:57:49 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:113b09dd-1709-41ad-920a-56a6805f68ef</guid><dc:creator>mtrobregado</dc:creator><description>&lt;p&gt;Thanks. I tried to generate certificate for CloudMQTT using openssl, but It did not generate any certificate. I do not think CloudMQTT needs a certificate to connect.&lt;/p&gt;
&lt;p&gt;I have managed to add password by adding password field to&amp;nbsp;mqtt_helper_conn_params. But, I am not able to connect to CloudMQTT.&lt;/p&gt;
&lt;p&gt;I don&amp;#39;t understand why the mqtt helper is incomplete library. Maybe not intended for connection to MQTT broker that requires username and password.&lt;/p&gt;
&lt;p&gt;Regards,&lt;/p&gt;
&lt;p&gt;Markel&lt;/p&gt;
&lt;div&gt;&lt;/div&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to set password and port at MQTT sample program?</title><link>https://devzone.nordicsemi.com/thread/450805?ContentTypeID=1</link><pubDate>Tue, 17 Oct 2023 10:58:56 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:90f91f45-0508-49d3-ad3b-387992f5148f</guid><dc:creator>Sigurd</dc:creator><description>&lt;p&gt;Hi!&lt;/p&gt;
&lt;p&gt;See this page:&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/2.4.2/nrf/samples/net/mqtt/doc/description.html#additional-configuration"&gt;https://developer.nordicsemi.com/nRF_Connect_SDK/doc/2.4.2/nrf/samples/net/mqtt/doc/description.html#additional-configuration&lt;/a&gt;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;p&gt;&lt;a title="(in Kconfig reference v&amp;amp;nbsp;)" href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/2.4.2/kconfig/index.html#CONFIG_MQTT_HELPER_PORT"&gt;&lt;code&gt;&lt;span&gt;CONFIG_MQTT_HELPER_PORT&lt;/span&gt;&lt;/code&gt;&lt;/a&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;- This option sets the MQTT broker port.&lt;/p&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;For provisioning, see this page:&amp;nbsp;&lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/2.4.2/nrf/samples/net/mqtt/doc/provisioning.html"&gt;https://developer.nordicsemi.com/nRF_Connect_SDK/doc/2.4.2/nrf/samples/net/mqtt/doc/provisioning.html&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>