reduce power consumtion
This commit is contained in:
parent
ae79061182
commit
916bebd102
|
@ -38,7 +38,7 @@
|
||||||
|
|
||||||
#define SICSLOWPAN_CONF_FRAG 1
|
#define SICSLOWPAN_CONF_FRAG 1
|
||||||
|
|
||||||
#define LOOP_INTERVAL (10 * CLOCK_SECOND)
|
#define LOOP_INTERVAL (30 * CLOCK_SECOND)
|
||||||
|
|
||||||
/* Save energy */
|
/* Save energy */
|
||||||
//#define RDC_CONF_PT_YIELD_OFF
|
//#define RDC_CONF_PT_YIELD_OFF
|
||||||
|
|
|
@ -42,10 +42,12 @@ void setup (void)
|
||||||
rest_activate_resource (&res_htu21dtemp, "s/temp");
|
rest_activate_resource (&res_htu21dtemp, "s/temp");
|
||||||
rest_activate_resource (&res_htu21dhum, "s/hum");
|
rest_activate_resource (&res_htu21dhum, "s/hum");
|
||||||
rest_activate_resource (&res_battery, "s/battery");
|
rest_activate_resource (&res_battery, "s/battery");
|
||||||
|
|
||||||
|
// mcu_sleep_set(64);
|
||||||
}
|
}
|
||||||
|
|
||||||
// at project-conf.h
|
// at project-conf.h
|
||||||
// LOOP_INTERVAL (10 * CLOCK_SECOND)
|
// LOOP_INTERVAL (30 * CLOCK_SECOND)
|
||||||
void loop (void)
|
void loop (void)
|
||||||
{
|
{
|
||||||
mcu_sleep_off();
|
mcu_sleep_off();
|
||||||
|
|
Loading…
Reference in a new issue