<?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>Issue with closing a socket after sending a UDP message</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/53199/issue-with-closing-a-socket-after-sending-a-udp-message</link><description>Dear All, 
 I need to develop a low-power application that sends a UDP message, waits for a certain amount of time (5 seconds) for a response and if there is no response it closes the socket and goes to sleep. I am using the nRF9160DK 
 
 This is the</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 14 Oct 2019 11:17:54 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/53199/issue-with-closing-a-socket-after-sending-a-udp-message" /><item><title>RE: Issue with closing a socket after sending a UDP message</title><link>https://devzone.nordicsemi.com/thread/214796?ContentTypeID=1</link><pubDate>Mon, 14 Oct 2019 11:17:54 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:28189d02-0f40-48fc-adb4-42ac4caae234</guid><dc:creator>Didrik Rokhaug</dc:creator><description>&lt;p&gt;Hi.&lt;/p&gt;
&lt;p&gt;First of all, have you checked what PSM values you get from the network? You are free to request whatever you want, but it is up to the network to decide what you get.&lt;/p&gt;
&lt;p&gt;You can check the network granted PSM values using the +CEREG or %XMONITOR AT commands.&lt;/p&gt;
&lt;p&gt;Secondly, how do you go to sleep after receiving?&lt;/p&gt;
&lt;p&gt;When you close the socket, you close the connection to the server you were talking to, but you are still connected to the network.&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>