Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

modules: trigger: Add state handling #144

Merged
merged 1 commit into from
Jun 11, 2024

Conversation

simensrostad
Copy link
Collaborator

@simensrostad simensrostad commented Jun 6, 2024

Add states handling to the trigger module:

STATE_INIT: Initializing module
STATE_CONNECTED: Connected to cloud.

  • STATE_FREQUENT_POLL:
    Sending poll triggers every 10 seconds for 10 minutes
    Sending data sample triggers every configured update interval
  • STATE_NORMAL:
    Sending poll triggers every configured update interval
    Sending data sample triggers every configured update interval

STATE_DISCONNECTED: Sending of triggers is blocked

@simensrostad simensrostad force-pushed the update/triggermodule branch 7 times, most recently from 42ba19a to 986ed69 Compare June 10, 2024 14:25
app/src/modules/trigger/trigger.c Outdated Show resolved Hide resolved
app/src/modules/trigger/trigger.c Outdated Show resolved Hide resolved
app/src/modules/trigger/trigger.c Outdated Show resolved Hide resolved
app/src/modules/trigger/trigger.c Outdated Show resolved Hide resolved
app/src/modules/trigger/trigger.c Outdated Show resolved Hide resolved
app/src/modules/trigger/trigger.c Outdated Show resolved Hide resolved
app/src/modules/trigger/trigger.c Outdated Show resolved Hide resolved
@simensrostad simensrostad force-pushed the update/triggermodule branch 5 times, most recently from e9fe6d0 to 07a5f06 Compare June 11, 2024 14:19
@simensrostad simensrostad marked this pull request as ready for review June 11, 2024 14:20
@simensrostad simensrostad force-pushed the update/triggermodule branch from 07a5f06 to 4a1830e Compare June 11, 2024 14:21
@simensrostad simensrostad changed the title modules: trigger: Add SMF support modules: trigger: Add state handling Jun 11, 2024
@simensrostad simensrostad force-pushed the update/triggermodule branch from 4a1830e to 1a09748 Compare June 11, 2024 14:39
Add states handling to the trigger module:

STATE_INIT: Initializing module
STATE_CONNECTED: Connected to cloud.
 - STATE_FREQUENT_POLL:
    Sending poll triggers every 10 seconds for 10 minutes
    Sending data sample triggers every configured update interval
 - STATE_NORMAL:
    Sending poll triggers every configured update interval
    Sending data sample triggers every configured update interval
STATE_DISCONNECTED: Sending of triggers is blocked

Signed-off-by: Simen S. Røstad <[email protected]>
@simensrostad simensrostad force-pushed the update/triggermodule branch from 1a09748 to 86aafc1 Compare June 11, 2024 14:54
Copy link

sonarqubecloud bot commented Jun 11, 2024

@simensrostad simensrostad merged commit 0b59d17 into hello-nrfcloud:main Jun 11, 2024
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants