About APN setting timing

Hi,

I am writing the sample program "https_client" to the nRF9160-DK with Visual Studio Code's "Flash".
I need to set the APN every time I write with Flash. Is it possible to avoid having to set it every time?

APN setting is done with AT command with the following contents.
AT+CFUN=0
AT+CEREG=5
AT+COPS=1,2,"44010"
AT%XSYSTEMMODE=1,0,0,0
AT+CGDCONT=0,"IP","soracom.io"
AT+CGAUTH=0,1,"sora","sora"
AT+CFUN=1

Add the following to the end of the prj.conf file to enable sending and receiving AT commands.
# AT host library
CONFIG_AT_HOST_LIBRARY=y
CONFIG_UART_INTERRUPT_DRIVEN=y

Thanks in advance,

Related