<?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>Need help to connect mqtt hivemq with nrf7002dk or nrf9160_dk</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/117609/need-help-to-connect-mqtt-hivemq-with-nrf7002dk-or-nrf9160_dk</link><description>Hi Everyone, 
 I tried this sample `samples/net/mqtt` It connects to the test.mosquito.org but I want it to connect to hivemq with username and password. Do we have a sample which connects with other mqtt broker such as hivemq or google iot or other except</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 06 Jan 2025 08:50:53 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/117609/need-help-to-connect-mqtt-hivemq-with-nrf7002dk-or-nrf9160_dk" /><item><title>RE: Need help to connect mqtt hivemq with nrf7002dk or nrf9160_dk</title><link>https://devzone.nordicsemi.com/thread/516919?ContentTypeID=1</link><pubDate>Mon, 06 Jan 2025 08:50:53 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a56609d9-090e-4336-9283-7914df71b25e</guid><dc:creator>&amp;#216;yvind</dc:creator><description>&lt;p&gt;Could you please try with the official sample in the nrf repo:&amp;nbsp;&lt;span&gt;&amp;nbsp;&lt;code&gt;nrf/samples/net/mqtt&lt;/code&gt; and not the zephyr repo:&amp;nbsp;&lt;code&gt;zephyr\samples\net\secure_mqtt_sensor_actuator, &lt;/code&gt;which is not designed for nrf devices. Please refer to the Developer Academy course:&amp;nbsp;&lt;a href="https://academy.nordicsemi.com/courses/wi-fi-fundamentals/lessons/lesson-4-wifi-fundamentals/"&gt;https://academy.nordicsemi.com/courses/wi-fi-fundamentals/lessons/lesson-4-wifi-fundamentals/&lt;/a&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Kind regards,&lt;br /&gt;Øyvind&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Need help to connect mqtt hivemq with nrf7002dk or nrf9160_dk</title><link>https://devzone.nordicsemi.com/thread/516625?ContentTypeID=1</link><pubDate>Thu, 02 Jan 2025 11:07:30 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d3a4ad61-8b50-4a0c-989b-4f6c7452741f</guid><dc:creator>Maaz</dc:creator><description>&lt;p&gt;Yes, I am referring to the samples in nrf/samples/net/mqtt/secure_mqtt_sensor_actuator this is what I am trying to build and getting errors&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Need help to connect mqtt hivemq with nrf7002dk or nrf9160_dk</title><link>https://devzone.nordicsemi.com/thread/516623?ContentTypeID=1</link><pubDate>Thu, 02 Jan 2025 10:49:33 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c4440cc6-f9bd-43ab-a454-e69ef92ec795</guid><dc:creator>&amp;#216;yvind</dc:creator><description>[quote user="Maaz"]mqtt secure sample actuator sensor example provided by nordic[/quote]
&lt;p&gt;I&amp;#39;m not sure what sample you are referring to, are you referring to the &lt;a href="https://docs.nordicsemi.com/bundle/ncs-2.8.0/page/nrf/samples/net/mqtt/doc/description.html"&gt;MQTT samples in our SDK&lt;/a&gt;&amp;nbsp;(found under nrf/&lt;span&gt;samples/net/mqtt)?&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;How are you building your the sample?&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Need help to connect mqtt hivemq with nrf7002dk or nrf9160_dk</title><link>https://devzone.nordicsemi.com/thread/516574?ContentTypeID=1</link><pubDate>Wed, 01 Jan 2025 06:12:46 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:530bff10-e3e1-41b5-ba64-a852fd12d5ba</guid><dc:creator>Maaz</dc:creator><description>&lt;p&gt;Hi &amp;Oslash;yvind,&lt;/p&gt;
&lt;p&gt;I am using nrf Connect SDK 2.8.0. I am planning to add the relevant details over here. I will replace the password and user_name with appropriate details&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="c_cpp"&gt;init_mqtt_client_id();
	mqtt_client_init(client);
	client-&amp;gt;broker = &amp;amp;broker;
	client-&amp;gt;evt_cb = mqtt_event_handler;
	client-&amp;gt;client_id.utf8 = client_id;
	client-&amp;gt;client_id.size = strlen(client-&amp;gt;client_id.utf8);
	client-&amp;gt;password = NULL;
	client-&amp;gt;user_name = NULL;
	client-&amp;gt;protocol_version = MQTT_VERSION_3_1_1;&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;I tried mqtt secure sample actuator sensor example provided by nordic. I am unable to build it I am getting the following error&lt;/p&gt;
&lt;p&gt;&lt;img style="max-height:240px;max-width:320px;" src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/pastedimage1735711765982v1.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Could you please help me with the same. Also, I am using nrf7002-dk right now&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Need help to connect mqtt hivemq with nrf7002dk or nrf9160_dk</title><link>https://devzone.nordicsemi.com/thread/516454?ContentTypeID=1</link><pubDate>Mon, 30 Dec 2024 07:27:03 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3330dca6-be64-4a30-80a7-e53fdaafac59</guid><dc:creator>&amp;#216;yvind</dc:creator><description>&lt;p&gt;Hello,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;First of, what version of the SDK are you working on? I know some customers have connected to HiveMQ using our nRF9160 e.g.&amp;nbsp;&lt;a href="https://www.linkedin.com/pulse/connecting-nrf9160-hivemq-mqtt-broker-pull-repo-srj7c/?trackingId=6gg7p2vNQu%2BMkdUdUBEazg%3D%3D"&gt;this LinkedIn post, using Serial LTE Modem.&lt;/a&gt;&amp;nbsp;How are you adding the broker and relevant information to your project?&lt;/p&gt;
&lt;p&gt;Kind regards,&lt;br /&gt;Øyvind&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>