set loop to 30
This commit is contained in:
parent
2942868799
commit
918b20f3cf
|
@ -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
|
||||||
|
|
|
@ -56,10 +56,11 @@ void setup (void)
|
||||||
rest_activate_resource (&res_bmpalt, "s/alt");
|
rest_activate_resource (&res_bmpalt, "s/alt");
|
||||||
rest_activate_resource (&res_battery, "s/battery");
|
rest_activate_resource (&res_battery, "s/battery");
|
||||||
#pragma GCC diagnostic pop
|
#pragma GCC diagnostic pop
|
||||||
|
mcu_sleep_set(128);
|
||||||
}
|
}
|
||||||
|
|
||||||
// at project-conf.h
|
// at project-conf.h
|
||||||
// LOOP_INTERVAL (10 * CLOCK_SECOND)
|
// LOOP_INTERVAL (30 * CLOCK_SECOND)
|
||||||
void loop (void)
|
void loop (void)
|
||||||
{
|
{
|
||||||
bmptemp = bme.readTemperature();
|
bmptemp = bme.readTemperature();
|
||||||
|
@ -74,8 +75,10 @@ void loop (void)
|
||||||
|
|
||||||
|
|
||||||
// Debug Print
|
// Debug Print
|
||||||
|
/*
|
||||||
printf("Temp: %s\n",bmptemp_s);
|
printf("Temp: %s\n",bmptemp_s);
|
||||||
printf("Press: %s\n",bmppress_s);
|
printf("Press: %s\n",bmppress_s);
|
||||||
printf("Altitude: %s\n",bmpalt_s);
|
printf("Altitude: %s\n",bmpalt_s);
|
||||||
printf("atm: %s\n",bmpatm_s);
|
printf("atm: %s\n",bmpatm_s);
|
||||||
|
*/
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue