<?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>Is there an example on how to handle power failure events with s210 (ANT)</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/5921/is-there-an-example-on-how-to-handle-power-failure-events-with-s210-ant</link><description>Unfortunately, I&amp;#39;m not seeing NRF_EVT_POWER_FAILURE_WARNING events on my s210 based system. As I&amp;#39;ve seen in other questions on the forum, I&amp;#39;ve implemented the calls below with no luck. Attempts to use sd_evt_get() were also fruitless. Any ideas? Thank</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Sat, 07 Mar 2015 21:22:49 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/5921/is-there-an-example-on-how-to-handle-power-failure-events-with-s210-ant" /><item><title>RE: Is there an example on how to handle power failure events with s210 (ANT)</title><link>https://devzone.nordicsemi.com/thread/20637?ContentTypeID=1</link><pubDate>Sat, 07 Mar 2015 21:22:49 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:23b8acc3-7670-44aa-a72b-7afed525537c</guid><dc:creator>Charles Custon</dc:creator><description>&lt;p&gt;I was able to resolve my issue by retrieving the message from within SD_EVT_IRQHandler(). See excerpt below:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;void SD_EVT_IRQHandler(void)
{
    uint32_t err_code;
    uint32_t sd_event_id;

	do
	{
		// Fetch the event.
		err_code = sd_evt_get( &amp;amp;sd_event_id);
		if (err_code == NRF_SUCCESS)
		{
			// Handle event.
			switch (sd_event_id)
			{
			case NRF_EVT_POWER_FAILURE_WARNING:
				saveTheWorld();
				break;
			default:
				break;
			}
		}
	} while (err_code == NRF_SUCCESS);
}
&lt;/code&gt;&lt;/pre&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Is there an example on how to handle power failure events with s210 (ANT)</title><link>https://devzone.nordicsemi.com/thread/20636?ContentTypeID=1</link><pubDate>Sat, 07 Mar 2015 01:42:49 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:31787f9e-9483-44ff-b126-12ebfd3439f8</guid><dc:creator>testy</dc:creator><description>&lt;p&gt;What about &lt;strong&gt;sd_evt_get(&amp;amp;p_event)&lt;/strong&gt; ?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>