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.
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.