Skip to content

Commit 7927dd7

Browse files
committed
Disable LTE auto-connect
When LTE_CONNECTIVITY is enabled, LTE_CONNECTIVITY_AUTO_CONNECT is enabled by default, causing the Connection Manager to automatically call LTE connect after the network interface has been brought up at boot. The app also calls lte_lc_init_and_connect_async(lte_handler) manually, registering an LTE handler that creates/starts the Golioth Client. However, if the LTE registration completes before the app registers the LTE handler, the handler will not be called, and the Golioth Client will not be started. This commit disables the Connection Manager LTE auto-connect functionality, allowing the app to call connect and register the handler manually. This ensures that the handler will be called and the Golioth Client is started on connect. Signed-off-by: Chris Wilson <[email protected]>
1 parent 52b9f95 commit 7927dd7

File tree

4 files changed

+6
-0
lines changed

4 files changed

+6
-0
lines changed

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,9 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
1717

1818
- Fix typo (`app_sensors_read_and_steam``app_sensors_read_and_stream`)
1919
- Fix RPC registration error handling
20+
- Fix an issue on boards using LTE connectivity where the Golioth Client was not
21+
started automatically (see
22+
https://github.com/golioth/reference-design-template/pull/92 for details).
2023

2124
### Changed
2225

boards/aludel_elixir_ns.conf

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ CONFIG_NRF_MODEM_LIB_ON_FAULT_APPLICATION_SPECIFIC=y
2121

2222
# LTE connectivity with network connection manager
2323
CONFIG_LTE_CONNECTIVITY=y
24+
CONFIG_LTE_CONNECTIVITY_AUTO_CONNECT=n
2425
CONFIG_NET_CONNECTION_MANAGER=y
2526
CONFIG_NET_CONNECTION_MANAGER_MONITOR_STACK_SIZE=1024
2627

boards/aludel_mini_v1_sparkfun9160_ns.conf

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ CONFIG_NRF_MODEM_LIB_ON_FAULT_APPLICATION_SPECIFIC=y
2121

2222
# LTE connectivity with network connection manager
2323
CONFIG_LTE_CONNECTIVITY=y
24+
CONFIG_LTE_CONNECTIVITY_AUTO_CONNECT=n
2425
CONFIG_NET_CONNECTION_MANAGER=y
2526
CONFIG_NET_CONNECTION_MANAGER_MONITOR_STACK_SIZE=1024
2627

boards/nrf9160dk_nrf9160_ns.conf

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ CONFIG_NRF_MODEM_LIB_ON_FAULT_APPLICATION_SPECIFIC=y
2121

2222
# LTE connectivity with network connection manager
2323
CONFIG_LTE_CONNECTIVITY=y
24+
CONFIG_LTE_CONNECTIVITY_AUTO_CONNECT=n
2425
CONFIG_NET_CONNECTION_MANAGER=y
2526
CONFIG_NET_CONNECTION_MANAGER_MONITOR_STACK_SIZE=1024
2627

0 commit comments

Comments
 (0)