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:
Joakim Eriksson 2019-02-10 10:30:28 +01:00 committed by GitHub
commit 3642dee5dd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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 */