Skip to content

Commit

Permalink
applications: demo: Set poll interval to 60s, regenerate project
Browse files Browse the repository at this point in the history
  • Loading branch information
hubmartin committed Oct 18, 2024
1 parent 7a415f3 commit 4f3f9e0
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 12 deletions.
14 changes: 7 additions & 7 deletions applications/demo/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -20,17 +20,17 @@ add_custom_command(
DEPENDS ../codec/cbor-decoder.yaml
)

target_sources(app PRIVATE src/app_data.c)
target_sources(app PRIVATE src/app_shell.c)
target_sources(app PRIVATE src/app_config.c)
target_sources(app PRIVATE src/app_data.c)
target_sources(app PRIVATE src/app_codec.h)
target_sources(app PRIVATE src/app_power.c)
target_sources(app PRIVATE src/main.c)
target_sources(app PRIVATE src/app_cbor.c)
target_sources(app PRIVATE src/app_handler.c)
target_sources(app PRIVATE src/app_init.c)
target_sources(app PRIVATE src/app_work.c)
target_sources(app PRIVATE src/app_cbor.c)
target_sources(app PRIVATE src/main.c)
target_sources(app PRIVATE src/app_power.c)
target_sources(app PRIVATE src/app_sensor.c)
target_sources(app PRIVATE src/app_init.c)
target_sources(app PRIVATE src/app_handler.c)
target_sources(app PRIVATE src/app_config.c)

target_precompile_headers(app PRIVATE src/feature.h)

Expand Down
5 changes: 2 additions & 3 deletions applications/demo/Kconfig.variant
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
# SPDX-License-Identifier: LicenseRef-HARDWARIO-5-Clause
#

config VARIANT_CHESTER_DEMO
bool "Enable VARIANT_CHESTER_DEMO"
config VARIANT_DEMO
bool "Enable VARIANT_DEMO"
default y

2 changes: 1 addition & 1 deletion applications/demo/project.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ parameters:
type: int
min: 0
max: 86400
default: 0
default: 60
help: "Get/Set poll interval in seconds (disabled if 0)"
commands:
- name: sample
Expand Down
2 changes: 1 addition & 1 deletion applications/demo/src/app_config.c
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ const struct ctr_config_item items[] = {
CTR_CONFIG_ITEM_INT("interval-sample", m_config_interim.interval_sample, 1, 86400, "Get/Set sample interval in seconds.", 60),
CTR_CONFIG_ITEM_INT("interval-aggreg", m_config_interim.interval_aggreg, 1, 86400, "Get/Set aggregate interval in seconds .", 300),
CTR_CONFIG_ITEM_INT("interval-report", m_config_interim.interval_report, 30, 86400, "Get/Set report interval in seconds.", 1800),
CTR_CONFIG_ITEM_INT("interval-poll", m_config_interim.interval_poll, 0, 86400, "Get/Set poll interval in seconds (disabled if 0).", 0),
CTR_CONFIG_ITEM_INT("interval-poll", m_config_interim.interval_poll, 0, 86400, "Get/Set poll interval in seconds (disabled if 0).", 60),

CTR_CONFIG_ITEM_ENUM("mode", m_config_interim.mode, ((const char*[]){"none", "lte"}), "Set communication mode", APP_CONFIG_MODE_LTE),

Expand Down

0 comments on commit 4f3f9e0

Please sign in to comment.