<?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-SN and OpenThread with Zephyr</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/97449/mqtt-sn-and-openthread-with-zephyr</link><description>Hi everyone, 
 I am trying to combine openthread and mqtt-sn over zephyr. I have been able to run the openthread cli and mqtt-sn examples provided in the &amp;quot;nrf sdk for thread and zigbee&amp;quot;. now I need to utilize zephyr and combine both openthread and mqtt</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 09 Mar 2023 13:26:10 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/97449/mqtt-sn-and-openthread-with-zephyr" /><item><title>RE: MQTT-SN and OpenThread with Zephyr</title><link>https://devzone.nordicsemi.com/thread/414390?ContentTypeID=1</link><pubDate>Thu, 09 Mar 2023 13:26:10 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:78567bfa-01c8-4bd1-9487-f86841fde5a2</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;Hi Shan,&amp;nbsp;&lt;br /&gt;The mqtt-sn in &amp;quot;&lt;span&gt;nrf sdk for thread and zigbee&amp;quot; is not based on Zephyr. So it&amp;nbsp;can be tricky to run it in Zephyr.&amp;nbsp;&lt;br /&gt;&lt;/span&gt;So what you need to do is to rewrite the example based on a Zephyr example. I don&amp;#39;t have much insight on how mqtt-sn works but should it be possible to convert a mqtt sample in Zephyr to mqttsn ? I see some protocol documentation &lt;a href="https://docs.zephyrproject.org/latest/connectivity/networking/api/mqtt_sn.html"&gt;here.&lt;/a&gt;&amp;nbsp;There is an example &lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/zephyr/samples/net/mqtt_sn_publisher/README.html"&gt;here.&lt;/a&gt;&amp;nbsp;But I don&amp;#39;t think it&amp;#39;s using Thread.&amp;nbsp;&lt;br /&gt;&lt;br /&gt;After you have a thread mqtt-sn application working in Zephyr you can think of combining with CLI. As far as I know it is quite simple to do so, just need to add&amp;nbsp;&lt;/p&gt;
&lt;div&gt;
&lt;div&gt;&lt;span&gt;CONFIG_SHELL&lt;/span&gt;&lt;span&gt;=y&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;CONFIG_OPENTHREAD_SHELL&lt;/span&gt;&lt;span&gt;=y&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;into the pfj.conf to enable CLI via shell.&amp;nbsp;&lt;br /&gt;&lt;br /&gt;Please see the nrf\openthread\coap_server sample.&amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>