<?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>regarding the sleep mode</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/40366/regarding-the-sleep-mode</link><description>hi.......... 
 i want to put my peripheral device in sleep mode ? how to do that? 
 i tried this one , its shows error 
 err_code= sd_power_system_off(); 
 APP_ERROR_CHECK(err_code);</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 16 Nov 2018 11:27:37 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/40366/regarding-the-sleep-mode" /><item><title>RE: regarding the sleep mode</title><link>https://devzone.nordicsemi.com/thread/157692?ContentTypeID=1</link><pubDate>Fri, 16 Nov 2018 11:27:37 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:07bd9dbf-1bc0-48ae-ab02-7a7b33796eed</guid><dc:creator>awneil</dc:creator><description>[quote userid="74848" url="~/f/nordic-q-a/40366/regarding-the-sleep-mode/156763"]leave that[/quote][quote userid="6462" url="~/f/nordic-q-a/40366/regarding-the-sleep-mode/156765"]OK - so long as you have fixed the error &lt;em&gt;&lt;b&gt;and understood the issue&lt;/b&gt;&lt;/em&gt;.[/quote]
&lt;p&gt;Apparently not:&amp;nbsp;&lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/40579/nus_data_handler-error"&gt;https://devzone.nordicsemi.com/f/nordic-q-a/40579/nus_data_handler-error&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: regarding the sleep mode</title><link>https://devzone.nordicsemi.com/thread/156765?ContentTypeID=1</link><pubDate>Sat, 10 Nov 2018 13:43:44 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3443f6ac-6e76-47f9-a7cc-602103ba7940</guid><dc:creator>awneil</dc:creator><description>[quote userid="74848" url="~/f/nordic-q-a/40366/regarding-the-sleep-mode/156763"]i tried ... leave that[/quote]
&lt;p&gt;OK - so long as you have fixed the error &lt;em&gt;and understood the issue&lt;/em&gt;.&lt;/p&gt;
&lt;p&gt;As noted, it is a very basic &amp;#39;C&amp;#39; programming issue - if you&amp;#39;re still not clear on such basics, you &lt;em&gt;are&lt;/em&gt; going to struggle with advanced stuff like BLE.&lt;/p&gt;
[quote userid="74848" url="~/f/nordic-q-a/40366/regarding-the-sleep-mode/156763"]how to turn the device into sleep mode[/quote]
&lt;p&gt;Have you studied the &lt;strong&gt;documentation&lt;/strong&gt;?&lt;/p&gt;
&lt;p&gt;You haven&amp;#39;t said what chip you&amp;#39;re using, or what SoftDevice you&amp;#39;re using.&lt;/p&gt;
&lt;p&gt;For S132 v6.1.0, the documentation is here:&lt;/p&gt;
&lt;p&gt;&lt;a href="https://infocenter.nordicsemi.com/topic/com.nordic.infocenter.s132.api.v6.1.0/group___n_r_f___s_o_c___f_u_n_c_t_i_o_n_s.html?cp=2_3_1_1_0_2_7_2"&gt;https://infocenter.nordicsemi.com/topic/com.nordic.infocenter.s132.api.v6.1.0/group___n_r_f___s_o_c___f_u_n_c_t_i_o_n_s.html?cp=2_3_1_1_0_2_7_2&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;You will also need to study the chip documentation.&lt;/p&gt;
&lt;p&gt;Have you looked at SDK examples?&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Details of the nRF52832 power modes here:&lt;/p&gt;
&lt;p&gt;&lt;a href="http://infocenter.nordicsemi.com/index.jsp?topic=%2Fcom.nordic.infocenter.nrf52832.ps.v1.1%2Fpower.html"&gt;http://infocenter.nordicsemi.com/index.jsp?topic=%2Fcom.nordic.infocenter.nrf52832.ps.v1.1%2Fpower.html&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: regarding the sleep mode</title><link>https://devzone.nordicsemi.com/thread/156763?ContentTypeID=1</link><pubDate>Sat, 10 Nov 2018 11:08:55 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1877240a-71a1-4026-ade5-f4ac4906984b</guid><dc:creator>ps_anu</dc:creator><description>&lt;p&gt;i tried ... leave that .. how to turn the device into sleep mode , using system&amp;nbsp; off right . if i were wrong tell me and explain me about system on and off&amp;nbsp; .......what function to used to turn the device into sleep and how to declare and tell me syntax .&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: regarding the sleep mode</title><link>https://devzone.nordicsemi.com/thread/156758?ContentTypeID=1</link><pubDate>Sat, 10 Nov 2018 09:59:42 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9a553d34-e6e7-4c49-9fb1-a73ede814396</guid><dc:creator>awneil</dc:creator><description>[quote userid="74848" url="~/f/nordic-q-a/40366/regarding-the-sleep-mode/156755"]what to declare ?&amp;nbsp;[/quote]
&lt;p&gt;It tells you what to declare!&lt;/p&gt;
&lt;p&gt;You need to declare the thing which it told you was&amp;nbsp;&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;em&gt;&lt;strong&gt;&lt;span style="text-decoration:underline;"&gt;un&lt;/span&gt;-&lt;/strong&gt;&lt;/em&gt;&lt;span&gt;declared!&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: regarding the sleep mode</title><link>https://devzone.nordicsemi.com/thread/156756?ContentTypeID=1</link><pubDate>Sat, 10 Nov 2018 09:30:22 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3b623b50-0a4f-4f12-b68d-d41746c033c1</guid><dc:creator>ps_anu</dc:creator><description>&lt;p&gt;for system off what i want to declare ?&lt;/p&gt;
&lt;p&gt;sleep_mode_enter(); this one ??&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: regarding the sleep mode</title><link>https://devzone.nordicsemi.com/thread/156755?ContentTypeID=1</link><pubDate>Sat, 10 Nov 2018 09:29:21 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:511b4bd2-22b9-42f1-a1b6-c0d57d084792</guid><dc:creator>ps_anu</dc:creator><description>&lt;p&gt;yes i know that meaning , what to declare ?&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: regarding the sleep mode</title><link>https://devzone.nordicsemi.com/thread/156754?ContentTypeID=1</link><pubDate>Sat, 10 Nov 2018 09:27:20 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4ddae406-92e8-4ae4-be14-ef6975edc521</guid><dc:creator>awneil</dc:creator><description>&lt;p&gt;The &amp;#39;C&amp;#39; programming language requires that everything must be declared before it is used.&lt;/p&gt;
&lt;p&gt;This is basic &amp;#39;C&amp;#39; - nothing specific to Nordic.&lt;/p&gt;
&lt;p&gt;So, when the error says that something is &lt;em&gt;&lt;strong&gt;&lt;span style="text-decoration:underline;"&gt;un&lt;/span&gt;-&lt;/strong&gt;&lt;/em&gt;declared - the solution is to &lt;em&gt;&lt;strong&gt;declare&lt;/strong&gt;&lt;/em&gt; it.&lt;/p&gt;
&lt;p&gt;In the code you posted, there clearly is no declaration of the variable &amp;#39;error_code&amp;#39;.&lt;/p&gt;
&lt;p&gt;How to properly post source code:&lt;/p&gt;
&lt;p&gt;&lt;img alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/3365._5F00_Insert-Code-_2D00_-Nordic.png" /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: regarding the sleep mode</title><link>https://devzone.nordicsemi.com/thread/156753?ContentTypeID=1</link><pubDate>Sat, 10 Nov 2018 09:22:50 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5c3c0e64-a5c0-4647-beac-b48d14f5b1d8</guid><dc:creator>ps_anu</dc:creator><description>&lt;p&gt;err_code undeclared (first use in this function)&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: regarding the sleep mode</title><link>https://devzone.nordicsemi.com/thread/156752?ContentTypeID=1</link><pubDate>Sat, 10 Nov 2018 09:21:17 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:facc26b0-25b2-4aad-9cd8-3873a19db7a0</guid><dc:creator>awneil</dc:creator><description>[quote userid="74848" url="~/f/nordic-q-a/40366/regarding-the-sleep-mode"]its shows error[/quote]
&lt;p&gt;So &lt;em&gt;&lt;strong&gt;what&lt;/strong&gt;&lt;/em&gt; error, exactly, does it show?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>