<?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>CoAP Request Handler?</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/80173/coap-request-handler</link><description>Hi there! 
 After having worked with the nRF5 SDK and nRF SDK for Mesh, I&amp;#39;m off to a start for a project with LTE; CoAP to be precise. I&amp;#39;m using the nRF Connect SDK with Visual Studio Code extension and I&amp;#39;m absolutely loving it with my nRF9160 DK. 
 So</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 23 Nov 2021 14:25:02 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/80173/coap-request-handler" /><item><title>RE: CoAP Request Handler?</title><link>https://devzone.nordicsemi.com/thread/340375?ContentTypeID=1</link><pubDate>Tue, 23 Nov 2021 14:25:02 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:dd4a3f91-9656-4872-87b7-d74756d64fce</guid><dc:creator>ced27</dc:creator><description>&lt;p&gt;The Server responds appropriately by every request. I know it because used trace collector to trace the transmission. Now what i want, is to be able to get a response from server without having to trace the transmission for me to know if the server responded appriopriately&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: CoAP Request Handler?</title><link>https://devzone.nordicsemi.com/thread/340372?ContentTypeID=1</link><pubDate>Tue, 23 Nov 2021 14:18:53 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:940048a4-27c6-409d-8aa0-9dc01fd33e56</guid><dc:creator>JVKran</dc:creator><description>&lt;p&gt;I&amp;#39;m sorry, yes, of course. Make sure the timeout is large enough for the server to respond. 1 second did it for me.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: CoAP Request Handler?</title><link>https://devzone.nordicsemi.com/thread/340370?ContentTypeID=1</link><pubDate>Tue, 23 Nov 2021 14:17:24 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:758797e7-f6db-41fa-a9f0-e3a9dd65748b</guid><dc:creator>ced27</dc:creator><description>&lt;p&gt;Hi &lt;a href="https://devzone.nordicsemi.com/members/jvkran"&gt;JVKran&lt;/a&gt;,&lt;/p&gt;
&lt;p&gt;can you please tell me, how you manage to implement a coap request handler?&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Cedric&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: CoAP Request Handler?</title><link>https://devzone.nordicsemi.com/thread/336277?ContentTypeID=1</link><pubDate>Wed, 27 Oct 2021 15:29:46 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a4056981-4697-42b6-af9b-d1cc9d1d129b</guid><dc:creator>JVKran</dc:creator><description>&lt;p&gt;I&amp;#39;m&amp;nbsp;happy to inform you that the problem has been resolved with the help of one of the sample programs. Both replies provided good pointers.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: CoAP Request Handler?</title><link>https://devzone.nordicsemi.com/thread/335737?ContentTypeID=1</link><pubDate>Mon, 25 Oct 2021 12:17:17 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d3b59a6e-7a28-4a3b-babf-8597f7cda8cd</guid><dc:creator>ludw</dc:creator><description>[quote userid="94539" url="~/f/nordic-q-a/80173/coap-request-handler"]This, however, crashes the nRF[/quote]
&lt;p&gt;The problem could be, because in the SDK Version 1.7.0 and older, the client_handle_get_response needs a payload. If no payload is returned from the server, the example crashes with no error code.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: CoAP Request Handler?</title><link>https://devzone.nordicsemi.com/thread/332168?ContentTypeID=1</link><pubDate>Fri, 01 Oct 2021 13:35:06 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:fcd4fd1a-b0fe-4ad2-a9bb-1433a426ae30</guid><dc:creator>Didrik Rokhaug</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Zephyr&amp;#39;s CoAP library doesn&amp;#39;t handle the socket, so it will never receive something by itself.&lt;/p&gt;
&lt;p&gt;You could create a thread that poll()&amp;#39;s the socket, and calls a callback when there is some data on the socket.&lt;/p&gt;
&lt;p&gt;poll() will make the thread sleep until something happened on the socket, or it times out.&lt;/p&gt;
&lt;p&gt;If you don&amp;#39;t want to write that code yourself, or need some inspiration, you can use our &lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/1.7.0/nrf/libraries/networking/coap_utils.html"&gt;coap_utils library&lt;/a&gt;, which does just that.&lt;/p&gt;
[quote user=""]I&amp;#39;m using the nRF Connect SDK with Visual Studio Code extension and I&amp;#39;m absolutely loving it with my nRF9160 DK.[/quote]
&lt;p&gt;That&amp;#39;s great to hear. I&amp;#39;ll make sure the developers know their work is apreciated.&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>