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:
Zhitao He 2019-01-14 15:27:43 +01:00
parent 423d928e97
commit 67e3b455cd
4 changed files with 4 additions and 4 deletions

View File

@ -50,7 +50,7 @@ PERIODIC_RESOURCE(res_push,
NULL, NULL,
NULL, NULL,
NULL, NULL,
5 * CLOCK_SECOND, 5000,
res_periodic_handler); res_periodic_handler);
/* /*

View File

@ -66,7 +66,7 @@ PERIODIC_RESOURCE(res_temperature,
NULL, NULL,
NULL, NULL,
NULL, NULL,
CLOCK_SECOND, 1000,
res_periodic_handler); res_periodic_handler);
static void static void

View File

@ -58,7 +58,7 @@ PERIODIC_RESOURCE(res_plugtest_obs,
NULL, NULL,
res_put_handler, res_put_handler,
res_delete_handler, res_delete_handler,
5 * CLOCK_SECOND, 5000,
res_periodic_handler); res_periodic_handler);
static int32_t obs_counter = 0; static int32_t obs_counter = 0;

View File

@ -57,7 +57,7 @@ PERIODIC_RESOURCE(res_plugtest_separate,
NULL, NULL,
NULL, NULL,
NULL, NULL,
3 * CLOCK_SECOND, 3000,
res_resume_handler); res_resume_handler);
/* A structure to store the required information */ /* A structure to store the required information */