reduce power consumtion

This commit is contained in:
Harald Pichler 2016-09-26 21:04:05 +02:00
parent ae79061182
commit 916bebd102
2 changed files with 4 additions and 2 deletions

View file

@ -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

View file

@ -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();