Hello,
I am using the modem callback:
typedef void(*lte_lc_evt_handler_t)(const struct lte_lc_evt *const evt);
To check if the modem is connected using the following code:
if evt->type == LTE_LC_EVT_NW_REG_STATUS isConnected = evt->nw_reg_status == LTE_LC_NW_REG_REGISTERED_HOME;
However, as far as I understood this only indicates that the modem radio is on, it does not indicate that the modem has an IP address and can connect to a server. To have this details, I need to use the AT command CGPADDR.
Is there any way I can update the callback to make sure the modem got an IP address? I do not need to know which address it received.
Thanks