<?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>How to implement event handling with nRFConnect?</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/102221/how-to-implement-event-handling-with-nrfconnect</link><description>Hello, 
 
 I&amp;#39;m exploring nRFConnect for some days now. 
 I want to use the POFWARN feature. It generates an event. 
 The only documentation I found on event management is about custom events ( https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 26 Jul 2023 10:12:31 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/102221/how-to-implement-event-handling-with-nrfconnect" /><item><title>RE: How to implement event handling with nRFConnect?</title><link>https://devzone.nordicsemi.com/thread/438216?ContentTypeID=1</link><pubDate>Wed, 26 Jul 2023 10:12:31 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:730f8354-d069-4fb1-a411-308e31d7393f</guid><dc:creator>julienD</dc:creator><description>&lt;p&gt;Hello Ovyind&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
[quote userid="77062" url="~/f/nordic-q-a/102221/how-to-implement-event-handling-with-nrfconnect/438203"]During the summer season, our workforce is currently operating with reduced staff levels throughout the company, which may lead to slight delays in our response time as we await additional resources. Rest assured, we are actively addressing all issues and working diligently to resolve them promptly.[/quote]
&lt;p&gt;No problem, you&amp;#39;re welcome.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Everything I need! thanks.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Have a nice day.&lt;/p&gt;
&lt;p&gt;Julien&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to implement event handling with nRFConnect?</title><link>https://devzone.nordicsemi.com/thread/438203?ContentTypeID=1</link><pubDate>Wed, 26 Jul 2023 09:28:17 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:769f3711-61ba-450e-ba7d-2a0b796991e9</guid><dc:creator>&amp;#216;yvind</dc:creator><description>&lt;p&gt;Hello Julien,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;span dir="ltr"&gt;During the summer season, our workforce is currently operating with reduced staff levels throughout the company, which may lead to slight delays in our response time as we await additional resources. Rest assured, we are actively addressing all issues and working diligently to resolve them promptly.&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;hr /&gt;
&lt;p&gt;Have a look at the&amp;nbsp;&lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/2.3.0/zephyr/kernel/services/index.html#scheduling-interrupts-and-synchronization"&gt;Scheduling, Interrupts, and Synchronization&lt;/a&gt;&amp;nbsp;chapter in the Zephyr OS documentation for more information on how the OS handles events.&lt;/p&gt;
&lt;p&gt;The application event mangager does have a sample under&amp;nbsp;&lt;em&gt;&amp;nbsp;nrf\samples\app_event_manager\&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;a href="https://infocenter.nordicsemi.com/topic/ps_nrf52805/power.html?cp=5_6_0_4_2_8_2#register.EVENTS_POFWARN"&gt;Power failure warning event (POFWARN)&lt;/a&gt; is defined in&amp;nbsp;modules\hal\nordic\nrfx\hal\nrf_power.h.&amp;nbsp;You can &lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/2.4.0/nrfx/drivers/power/index.html#power"&gt;use the nrfx library to init and enable&lt;/a&gt; this event using&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;pre class="ui-code" data-mode="c_cpp"&gt;nrfx_power_pof_init()

nrfx_power_pof_enable()
 
depends on CONFIG_NRFX_POWER=Y in prj.conf&lt;/pre&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Kind regards,&lt;br /&gt;Øyvind&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>