<?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>the mqtt application on the nRF5340</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/107039/the-mqtt-application-on-the-nrf5340</link><description>Hi Support Team, 
 I want to set up a MQTT application on nRF5340DK, and an ublox SARA-R4 modem was connected to the nRF5340DK with jumper wires. The net-core is responsible for initialize the modem and sending data with NB-IoT network. I found some resources</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 08 Jan 2024 16:24:43 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/107039/the-mqtt-application-on-the-nrf5340" /><item><title>RE: the mqtt application on the nRF5340</title><link>https://devzone.nordicsemi.com/thread/463206?ContentTypeID=1</link><pubDate>Mon, 08 Jan 2024 16:24:43 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:57c583bc-8a6d-4242-b40e-55518e9f8a84</guid><dc:creator>Didrik Rokhaug</dc:creator><description>[quote user="Yanpengwu"]Then I can use MQTT lib directly, and not need to set up some correspondence between the MQTT lib and modem driver[/quote]
&lt;p&gt;I don&amp;#39;t have any experience with the SARA-R4 driver, but from what I can see: yes.&lt;/p&gt;
&lt;p&gt;Once the modem&amp;#39;s driver socket interface is up, you can use the MQTT library, without having to implement any glue between the driver and the library yourself.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: the mqtt application on the nRF5340</title><link>https://devzone.nordicsemi.com/thread/462704?ContentTypeID=1</link><pubDate>Thu, 04 Jan 2024 13:42:27 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ed255965-a64c-48ff-90fc-bdec7ab1a41a</guid><dc:creator>Yanpengwu</dc:creator><description>&lt;p&gt;Hi Didrik,&lt;/p&gt;
&lt;p&gt;Thank you for your reply. Could I understand it in this way? I just need to initialize the modem, after the modem is connected to the network, the net interface will be brought up and the socket will be ready. Then I can use MQTT lib directly, and not need to set up some correspondence between the MQTT lib and modem driver, the Zephyr OS will take care of it. Is the understanding correct? Thank you very much.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;br /&gt;Yanpeng Wu&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: the mqtt application on the nRF5340</title><link>https://devzone.nordicsemi.com/thread/462577?ContentTypeID=1</link><pubDate>Wed, 03 Jan 2024 16:56:49 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b591aa9e-2b72-48eb-88d8-c6c5dc9fdf0a</guid><dc:creator>Didrik Rokhaug</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;The SARA-R4 driver supports socket offloading, so once the modem is connected to the network, you can use Zephyr&amp;#39;s socket API, and the sockets will use the modem. This means that you can also use the MQTT library, as it is built on top of the socket API.&lt;/p&gt;
&lt;p&gt;If the driver also supports the connection manager API (and while I am not a 100% sure how the connection manager works yet, I think it does), you should also be able to use the net/mqtt sample, by adding the necessary board overlay files.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Didrik&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>