cccs-upload-data-points-example: increase the seconds between samples
This commit increases the number of seconds between incremental values so, the sample uploads 10 samples per minute. While on it, fix a typo. Signed-off-by: Tatiana Leon <Tatiana.Leon@digi.com>
This commit is contained in:
parent
ddc4623f0b
commit
a3435686c3
|
|
@ -23,7 +23,7 @@
|
||||||
|
|
||||||
#define STREAM_NAME "incremental"
|
#define STREAM_NAME "incremental"
|
||||||
|
|
||||||
#define DP_SLEEP_TIME 5
|
#define DP_SLEEP_TIME 6
|
||||||
#define DP_NUMBER 10
|
#define DP_NUMBER 10
|
||||||
|
|
||||||
static int stop_requested = 0;
|
static int stop_requested = 0;
|
||||||
|
|
@ -179,7 +179,7 @@ static int send_data(cccs_dp_collection_handle_t collection)
|
||||||
cccs_comm_error_t ret;
|
cccs_comm_error_t ret;
|
||||||
cccs_resp_t resp;
|
cccs_resp_t resp;
|
||||||
|
|
||||||
log_info("%s", "Sending data sream with new incremental value");
|
log_info("%s", "Sending data stream with new incremental value");
|
||||||
|
|
||||||
ret = cccs_send_dp_collection_tout(collection, 5, &resp);
|
ret = cccs_send_dp_collection_tout(collection, 5, &resp);
|
||||||
if (ret != CCCS_SEND_ERROR_NONE) {
|
if (ret != CCCS_SEND_ERROR_NONE) {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue