<?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>mqtt not working in SDK2.5.0</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/110091/mqtt-not-working-in-sdk2-5-0</link><description>HI, I have a project develop before and fully work in SDK2.2.0 
 now I update to SDK2.5.0 and try to run and all fail. 
 I try to study from the sample project nrf/sample/net/mqtt, try to build and run, its not connect to LTE 
 I found it has no main</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 10 Apr 2024 13:40:27 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/110091/mqtt-not-working-in-sdk2-5-0" /><item><title>RE: mqtt not working in SDK2.5.0</title><link>https://devzone.nordicsemi.com/thread/478088?ContentTypeID=1</link><pubDate>Wed, 10 Apr 2024 13:40:27 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2a775051-0f46-464e-bda6-d4fb969c8240</guid><dc:creator>Charlie</dc:creator><description>&lt;p&gt;Hi Dannis,&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;It is still possible to use the zephyr MQTT library directly instead of MQTT helper on NCS 2.5.0.&lt;/p&gt;
&lt;p&gt;&lt;a href="https://academy.nordicsemi.com/courses/cellular-iot-fundamentals/lessons/lesson-4-cellular-fundamentals/topic/lesson-4-exercise-1/"&gt;Exercise 1 – Nordic Developer Academy (nordicsemi.com)&lt;/a&gt;&amp;nbsp;provide reference about how to use Zephyr MQTT library, it covers all NCS versions, so you can&lt;/p&gt;
&lt;p&gt;refer to the following codes to adapt your codes to new NCS versions.&lt;/p&gt;
&lt;p&gt;&lt;a href="https://github.com/NordicDeveloperAcademy/cell-fund/tree/master/v2.4.0-v2.x.x/lesson4"&gt;cell-fund/v2.4.0-v2.x.x/lesson4 at master · NordicDeveloperAcademy/cell-fund · GitHub&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Charlie&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: mqtt not working in SDK2.5.0</title><link>https://devzone.nordicsemi.com/thread/478000?ContentTypeID=1</link><pubDate>Wed, 10 Apr 2024 09:38:54 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c3587fcb-bafb-482d-8e19-a884089626d7</guid><dc:creator>DannisWong</dc:creator><description>&lt;p&gt;Hi Charlie&lt;/p&gt;
&lt;p&gt;thanks for your reply, I need to work on 2.5.0 due to other feature, actually my project not only mqtt, I need to add other feature on it, any suggestion to merge other code into mqtt sample project?&lt;/p&gt;
&lt;p&gt;Best Regards&lt;/p&gt;
&lt;p&gt;Dannis&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: mqtt not working in SDK2.5.0</title><link>https://devzone.nordicsemi.com/thread/477994?ContentTypeID=1</link><pubDate>Wed, 10 Apr 2024 09:32:43 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:14f5ed63-5358-4c7e-b936-91bb9d69f843</guid><dc:creator>Charlie</dc:creator><description>&lt;p&gt;Hi Dannis,&lt;/p&gt;
&lt;p&gt;Sorry to hear your struggling.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I assume you are working with &lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/2.2.0/nrf/samples/nrf9160/mqtt_simple/README.html"&gt;nRF9160: Simple MQTT — nRF Connect SDK 2.2.0 documentation (nordicsemi.com)&lt;/a&gt;&amp;nbsp;on nRF9160 device before. A new library named &lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/2.3.0/nrf/libraries/networking/mqtt_helper.html#mqtt-helper"&gt;MQTT helper &lt;/a&gt;has been introduced since NCS v2.3.0&amp;nbsp;&lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/2.6.0/nrf/samples/net/mqtt/README.html"&gt;MQTT — nRF Connect SDK 2.6.0 documentation (nordicsemi.com)&lt;/a&gt;.It also added support for nRF7002DK with WiFi connection.&lt;/p&gt;
&lt;p&gt;The reason there is no main.c inside is that the new sample introduced&amp;nbsp;&lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/2.6.0/zephyr/services/zbus/index.html"&gt;Zephyr bus (zbus) — Zephyr Project documentation (nRF Connect SDK) (nordicsemi.com)&lt;/a&gt;&amp;nbsp;to organize the codes, which can make the application codes simpler and structured. Its MQTT configuration is manged in transport module&amp;nbsp;&lt;a href="https://github.com/nrfconnect/sdk-nrf/blob/v2.6-branch/samples/net/mqtt/src/modules/transport/transport.c"&gt;sdk-nrf/samples/net/mqtt/src/modules/transport/transport.c at v2.6-branch · nrfconnect/sdk-nrf · GitHub&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;I suggest you switch directly to the latest NCS v2.6.0 instead of NCS v2.5.0 since you just start your codes&amp;#39; adaption. Please share the log printout if the MQTT sample still not work as expect.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Charlie&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>