<?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>Where can I find a CoAP Server sample based on Zephyr CoAP API?</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/92832/where-can-i-find-a-coap-server-sample-based-on-zephyr-coap-api</link><description>Hi, 
 According to the documents of NCS, CoAP Server sample uses native OT CoAP API while CoAP Client sample uses Zephyr CoAP API, and the Zephyr CoAP API is recommanded. 
 
 So my question is where can I find a CoAP Server sample used Zephyr CoAP API</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 17 Oct 2022 08:20:56 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/92832/where-can-i-find-a-coap-server-sample-based-on-zephyr-coap-api" /><item><title>RE: Where can I find a CoAP Server sample based on Zephyr CoAP API?</title><link>https://devzone.nordicsemi.com/thread/390915?ContentTypeID=1</link><pubDate>Mon, 17 Oct 2022 08:20:56 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2b917dc1-2f05-46b5-a405-bb45b7e53d77</guid><dc:creator>Joyop</dc:creator><description>&lt;p&gt;Okay, thanks a lot.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Where can I find a CoAP Server sample based on Zephyr CoAP API?</title><link>https://devzone.nordicsemi.com/thread/390601?ContentTypeID=1</link><pubDate>Thu, 13 Oct 2022 10:09:42 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9d45493b-ede2-4da0-ba97-0a76bcb301fa</guid><dc:creator>J&amp;#248;rgen Holmefjord</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;We do not have any specific samples for CoAP Server using the Zephyr CoAP API running with the Thread protocol. The closest would be the&amp;nbsp;&lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/2.1.0/zephyr/samples/net/sockets/coap_server/README.html"&gt;CoAP Server&lt;/a&gt;&amp;nbsp;Networking sample in Zephyr (found &lt;a href="https://github.com/nrfconnect/sdk-zephyr/tree/v3.1.99-ncs1/samples/net/sockets/coap_server"&gt;here&lt;/a&gt;), but this is not written specifically for supporting Thread. The other alternative is to modify the&amp;nbsp;&lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/2.1.0/nrf/samples/openthread/coap_client/README.html"&gt;CoAP Client&lt;/a&gt;&amp;nbsp;sample and replace the client APIs with the corresponding server APIs. This should not be a huge job, and you can use the above linked CoAP Server sample as a reference for the APIs.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;br /&gt;Jørgen&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>