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);
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);
its shows error
So what error, exactly, does it show?
its shows error
So what error, exactly, does it show?
err_code undeclared (first use in this function)
The 'C' programming language requires that everything must be declared before it is used.
This is basic 'C' - nothing specific to Nordic.
So, when the error says that something is un-declared - the solution is to declare it.
In the code you posted, there clearly is no declaration of the variable 'error_code'.
How to properly post source code:
yes i know that meaning , what to declare ?
for system off what i want to declare ?
sleep_mode_enter(); this one ??
what to declare ?
It tells you what to declare!
You need to declare the thing which it told you was un-declared!