Merge pull request #820 from zhitaoh/coap-example-periodic-resource-interval-fix
correct time intervals of example CoAP periodic resources
This commit is contained in:
commit
3642dee5dd
@ -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