This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

nrf9160 lte_lc_init_and_connect() blocks even when running on Zephyr workqueue.

When my app starts up, I call "lte_lc_init_and_connect()" by using the Zephyr system workqueue. With it running on a separate thread, my main thread is still blocked. I have tried using the CONFIG_LTE_AUTO_INIT_AND_CONNECT, but that is just as annoying because then my application blocks during startup, and I also don't want to connect every time I start up.

Is there anyway to initiate the LTE connection without blocking my whole program?

- Jack

Related