<?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>Use of certain libraries in Coap_Client sample in nRF_Connect_SDK</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/86243/use-of-certain-libraries-in-coap_client-sample-in-nrf_connect_sdk</link><description>Hi, 
 
 In Openthread&amp;#39;s Coap_client sample, Following 2 libraries are there: 
 
 and while compiling my code I get multiple warning regarding to above 2 libraries. 
 Following are some such warnings: 
 
 So can you explain me the use of these 2 libraries</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 28 Mar 2022 14:14:49 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/86243/use-of-certain-libraries-in-coap_client-sample-in-nrf_connect_sdk" /><item><title>RE: Use of certain libraries in Coap_Client sample in nRF_Connect_SDK</title><link>https://devzone.nordicsemi.com/thread/360344?ContentTypeID=1</link><pubDate>Mon, 28 Mar 2022 14:14:49 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8252c564-b346-4c1b-a9fa-16acec2fdd46</guid><dc:creator>Einar Thorsrud</dc:creator><description>&lt;p&gt;Ah, I see. Checking in 1.9 at least, the two header files are not used in the coap_server sample either, even though it is included in ot_coap_utils.c. So it is safe to remove the two include statements.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Use of certain libraries in Coap_Client sample in nRF_Connect_SDK</title><link>https://devzone.nordicsemi.com/thread/360188?ContentTypeID=1</link><pubDate>Mon, 28 Mar 2022 08:26:51 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9565f926-8b04-46d7-85d1-da476ca44193</guid><dc:creator>Bhumika</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Thanks for the update.&lt;/p&gt;
&lt;p&gt;Yes you are right that&amp;nbsp;&lt;span&gt;net/net_pkt.h or&amp;nbsp;net/net_l2.h are not included in the coap_client in 1.8 either.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;But why I had these files is because my node is using 2-way communication with edge and I have merged both coap_client and coap_server functionality in a single node.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;So by default, I added all include files of both applications.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;So is there any specific use of these files in the coap_server sample?&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Use of certain libraries in Coap_Client sample in nRF_Connect_SDK</title><link>https://devzone.nordicsemi.com/thread/360183?ContentTypeID=1</link><pubDate>Mon, 28 Mar 2022 08:09:13 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:96be2437-6894-48f8-af41-4e04a9691527</guid><dc:creator>Einar Thorsrud</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;I am not able to find&amp;nbsp;net/net_pkt.h or&amp;nbsp;net/net_l2.h included in the coap_client in 1.8 either,&amp;nbsp;perhaps you added them yourself by accident and forgot about it? In any case, they are not used in the&amp;nbsp;example&amp;nbsp;and can be safely removed.&lt;/p&gt;
&lt;p&gt;You can read about the most important changes in the release notes for &lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/nrf/releases/release-notes-1.9.0.html"&gt;1.9.0&lt;/a&gt; and &lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/nrf/releases/release-notes-1.9.1.html"&gt;1.9.1&lt;/a&gt;. If you should migrate or not is application specific, and also depends on how far you have come with your development. If you are not yet close to going to production, and migration is simple (which I expect will be the case for most&amp;nbsp;application migrating from 1.8 to 1.9), then migrating to the newest available SDK normally makes sense.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Use of certain libraries in Coap_Client sample in nRF_Connect_SDK</title><link>https://devzone.nordicsemi.com/thread/360094?ContentTypeID=1</link><pubDate>Fri, 25 Mar 2022 19:28:50 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:cac1f641-0f4a-4c29-ad31-d735ae295e26</guid><dc:creator>Bhumika</dc:creator><description>&lt;p&gt;I removed these libraries and didn&amp;#39;t face any issues in the build. So&amp;nbsp; I guess these are not used anywhere.&lt;/p&gt;
&lt;p&gt;I am currently using version 1.8.0. So can you tell me in brief about all imp features of V1.9.1 and should I move to SDK V1.9.1 before completing my application development?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Use of certain libraries in Coap_Client sample in nRF_Connect_SDK</title><link>https://devzone.nordicsemi.com/thread/360006?ContentTypeID=1</link><pubDate>Fri, 25 Mar 2022 12:45:30 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ce7d9627-76df-4a65-b28a-a8045cb8c189</guid><dc:creator>Einar Thorsrud</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Which&amp;nbsp;nRF Connect SDK version are you using? And which changes have you made to the sample? I aske because the two includes (net/net_l2.h and net/net_pkt.h) are not used in the coap_client sample in 1.9.1. They are used in the coap_server sample though, but I do not get these warnings even then.&lt;/p&gt;
[quote user=""]So can you explain me the use of these 2 libraries, what feature do they support, can I remove them If I don&amp;#39;t require that feature?[/quote]
&lt;p&gt;I need to know more about your app to say if they are needed. That said, I you an remove the include and if everything builds OK that indicates that they are not used. If not, then they are used and it needs to be looked more into.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>