Skip to content

Commit

Permalink
samples: nrf9160: mmss: Simplify connection loop
Browse files Browse the repository at this point in the history
Rewrite connection loop with simpler event structure

IRIS-5814

Signed-off-by: Georges Oates_Larsen <georges.larsen@nordicsemi.no>
  • Loading branch information
glarsennordic authored and rlubos committed Jul 24, 2023
1 parent 2546531 commit b2a69dd
Show file tree
Hide file tree
Showing 7 changed files with 180 additions and 290 deletions.
7 changes: 0 additions & 7 deletions samples/cellular/nrf_cloud_mqtt_multi_service/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -29,13 +29,6 @@ config CLOUD_CONNECTION_RETRY_TIMEOUT_SECONDS
If connecting to nRF Cloud takes longer than this timeout, it will be
reattempted.

config CLOUD_CONNECTION_REESTABLISH_DELAY_SECONDS
int "Cloud connection reestablishment delay (seconds)"
default 5
help
After the connection to nRF Cloud has been reset, wait this amount of
time before attempting to connect again.

config CLOUD_READY_TIMEOUT_SECONDS
int "Cloud readiness timeout (seconds)"
default 600
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -305,7 +305,7 @@ void main_application_thread_fn(void)
}

/* Wait for first connection before starting the application. */
(void)await_connection(K_FOREVER);
(void)await_cloud_ready(K_FOREVER);

(void)nrf_cloud_alert_send(ALERT_TYPE_DEVICE_NOW_ONLINE, 0, NULL);

Expand Down
Loading

0 comments on commit b2a69dd

Please sign in to comment.