correct time intervals of example CoAP periodic resources: one second = 1000 x 1 ms coap timer ticks, not CLOCK_SECOND ticks
This commit is contained in:
parent
423d928e97
commit
67e3b455cd
@ -50,7 +50,7 @@ PERIODIC_RESOURCE(res_push,
|
||||
NULL,
|
||||
NULL,
|
||||
NULL,
|
||||
5 * CLOCK_SECOND,
|
||||
5000,
|
||||
res_periodic_handler);
|
||||
|
||||
/*
|
||||
|
@ -66,7 +66,7 @@ PERIODIC_RESOURCE(res_temperature,
|
||||
NULL,
|
||||
NULL,
|
||||
NULL,
|
||||
CLOCK_SECOND,
|
||||
1000,
|
||||
res_periodic_handler);
|
||||
|
||||
static void
|
||||
|
@ -58,7 +58,7 @@ PERIODIC_RESOURCE(res_plugtest_obs,
|
||||
NULL,
|
||||
res_put_handler,
|
||||
res_delete_handler,
|
||||
5 * CLOCK_SECOND,
|
||||
5000,
|
||||
res_periodic_handler);
|
||||
|
||||
static int32_t obs_counter = 0;
|
||||
|
@ -57,7 +57,7 @@ PERIODIC_RESOURCE(res_plugtest_separate,
|
||||
NULL,
|
||||
NULL,
|
||||
NULL,
|
||||
3 * CLOCK_SECOND,
|
||||
3000,
|
||||
res_resume_handler);
|
||||
|
||||
/* A structure to store the required information */
|
||||
|
Loading…
Reference in New Issue
Block a user