I have an nRF9151 with a Hologram card running here, and it is connected. How is the APN configured? I don’t see that anywhere in the code. Does it come directly from the SIM card somehow?
How is APN set?
cbrake when it registers on the network it gets the APN that way. Not all SIMs are automatic though.
For that case, if you need the registration command I can find it and add to this thread.
We have two devices – the one here connects fine, but the one at my associate’s in San Jose does not register:
[00:10:02.729,339] <inf> lte_lc: Network connection attempt timed out
[00:10:03.138,153] <err> main: Failed to connect. Err: -116
So, working through why.
it just connected – must just take time for the provisioning process to complete or something …
Ahh yea if it’s a fresh provision the first connect/propagation can take a while!
If you need to set the APN explicitly, you may use pdn_ctx_configure
(you will need to reconfigure them before every call to lte_lc_normal
). Or static as config with PDN_DEFAULTS_OVERRIDE
and PDN_DEFAULT_APN
. (I only use pdn_ctx_configure
.)