<?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 in Zephyr</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/108063/mqtt-in-zephyr</link><description>Hi Support team, 
 I want to implement MQTT Sparkplug B on the net-core of nRF5340. I found some sample code that used the mosquitto lib. Can I use mosquitto lib in Zephyr? Can the Zephyr native MQTT replace the mosquitto lib perfectly? 
 In addition</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 08 Feb 2024 09:29:47 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/108063/mqtt-in-zephyr" /><item><title>RE: mqtt in Zephyr</title><link>https://devzone.nordicsemi.com/thread/468019?ContentTypeID=1</link><pubDate>Thu, 08 Feb 2024 09:29:47 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6b3810fb-2b52-4030-9449-7d2b69c89e9b</guid><dc:creator>Edvin</dc:creator><description>[quote user="Yanpengwu"]Is the functionality of Zephyr native mqtt lib similar to the Mosquitto lib, or just a subset of it? Is Mosquitto too big to be used on nRF5340 net-core?[/quote]
&lt;p&gt;I am not sure whether it is too big, but I think I would have gone for the Zephyr, if I needed to choose between the two.&lt;/p&gt;
[quote user="Yanpengwu"] I found the sample &amp;#39;MQTT/Publisher&amp;#39; is very good, but it only has sample code for mqtt publishing. Are there some samples for mqtt subscribing and receving?[/quote]
&lt;p&gt;Not that I am aware of. But then again, MQTT is not my expertise, as it is not commonly used with the nRF53. You may get a better answer by reaching out to the Zephyr forum directly.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Edvin&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: mqtt in Zephyr</title><link>https://devzone.nordicsemi.com/thread/467683?ContentTypeID=1</link><pubDate>Tue, 06 Feb 2024 07:53:07 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:526516f8-79d0-4cb8-884b-784bfd4a5d38</guid><dc:creator>Yanpengwu</dc:creator><description>&lt;p&gt;Hi Edvin,&lt;/p&gt;
&lt;p&gt;Thanks for the reply, the device driver and communication of the SARA modem are working well now.&lt;br /&gt;I want to use MQTT, and there are two options: (1) use Zephyr native mqtt lib,(2) use the open source Mosquitto mqtt lib. I&amp;#39;m not sure which one is better on nRF5340.&lt;/p&gt;
&lt;p&gt;My questions:&lt;br /&gt;(1) Is the functionality of Zephyr native mqtt lib similar to the Mosquitto lib, or just a subset of it? Is Mosquitto too big to be used on nRF5340 net-core?&lt;br /&gt;(2) I found the sample &amp;#39;MQTT/Publisher&amp;#39; is very good, but it only has sample code for mqtt publishing. Are there some samples for mqtt subscribing and receving?&lt;/p&gt;
&lt;p&gt;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: mqtt in Zephyr</title><link>https://devzone.nordicsemi.com/thread/467663?ContentTypeID=1</link><pubDate>Mon, 05 Feb 2024 22:26:04 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e4bfd71c-8886-45c9-ab27-2defac77df0f</guid><dc:creator>Edvin</dc:creator><description>&lt;p&gt;Hello Yanpeng,&lt;/p&gt;
&lt;p&gt;Ok, in that case, it sounds like you need to look into the datasheet of the ublox SARA R4. I am not familiar with this device. I guess this device uses UART for communication? I believe you need to find some sort of driver for this device, or implement it yourself.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Edvin&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: mqtt in Zephyr</title><link>https://devzone.nordicsemi.com/thread/467614?ContentTypeID=1</link><pubDate>Mon, 05 Feb 2024 14:57:37 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:23e35131-5f58-49ed-a081-da5a00874cf1</guid><dc:creator>Yanpengwu</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;I used an LTE modem(ublox SARA R4) and connected to the net-core of nRF5340. It&amp;#39;s not&amp;nbsp;&lt;span&gt;MQTT over OpenThread, just normal MQTT over socket.&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: mqtt in Zephyr</title><link>https://devzone.nordicsemi.com/thread/467610?ContentTypeID=1</link><pubDate>Mon, 05 Feb 2024 14:51:53 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:740400ef-5255-4cd9-9b7d-f5b8a547b8e0</guid><dc:creator>Edvin</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;Are you talking about MQTT over OpenThread? Or what kind of transport layer are you using for MQTT?&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Edvin&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>