<?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>calling systemoff api soon after softdevice api</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/75790/calling-systemoff-api-soon-after-softdevice-api</link><description>err_code = sd_ble_gap_adv_start(m_adv_handle, APP_BLE_CONN_CFG_TAG); 
 nrf_pwr_mgmt_shutdown(NRF_PWR_MGMT_SHUTDOWN_GOTO_SYSOFF); 
 
 I would like to ask that for the above code, will the mcu wait for the advertisement to complete before going to sytemOFF</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 01 Jun 2021 08:53:04 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/75790/calling-systemoff-api-soon-after-softdevice-api" /><item><title>RE: calling systemoff api soon after softdevice api</title><link>https://devzone.nordicsemi.com/thread/312786?ContentTypeID=1</link><pubDate>Tue, 01 Jun 2021 08:53:04 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:27695f5f-a6df-4907-9271-e04be70962b4</guid><dc:creator>Jared</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;No, it will not wait for the advertising to complete before it goes to system OFF. See the &lt;a href="https://infocenter.nordicsemi.com/topic/sdk_nrf5_v17.0.2/pwr_mgmt_example.html?cp=8_1_4_6_21"&gt;Power Management Example&lt;/a&gt;&amp;nbsp;in the SDK for an example on how to postpone the shutdown process if the application is not ready.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;best regards&lt;/p&gt;
&lt;p&gt;Jared&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>