Hello,
I'm in need of turning on and off the LTE link to use the GPS in cases where I can't depend on PSM. The LTE Link Controller library is good for this however I have found that I needed to make one adjustment:
lte_lc.c uses a boolen called is_initialized to check if the modem is properly initialized. This boolean is never set back to false when the modem is set to offline or powered off, meaning that coming back from say a GPS configuration to an LTE configuration doesn't work (the modem is not initialized and lte_c.c returns EALREADY).
Should this variable be cleared? I've added code to lte_lc_offline() and lte_lc_power_off() to clear is_initialized to false and all is functioning as expected.
Thanks!