<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://devzone.nordicsemi.com/cfs-file/__key/system/syndication/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>About APN setting timing</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/92121/about-apn-setting-timing</link><description>Hi, 
 I am writing the sample program &amp;quot;https_client&amp;quot; to the nRF9160-DK with Visual Studio Code&amp;#39;s &amp;quot;Flash&amp;quot;. 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</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 20 Sep 2022 09:59:10 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/92121/about-apn-setting-timing" /><item><title>RE: About APN setting timing</title><link>https://devzone.nordicsemi.com/thread/387042?ContentTypeID=1</link><pubDate>Tue, 20 Sep 2022 09:59:10 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0ee58d41-dafc-44ff-b17d-25d1bf2f176c</guid><dc:creator>ppc paper</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Thank you for your reply.&lt;/p&gt;
&lt;p&gt;I will save it in NVM by adding AT + CFUN = 0.&lt;/p&gt;
&lt;p&gt;It was very helpful.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: About APN setting timing</title><link>https://devzone.nordicsemi.com/thread/387017?ContentTypeID=1</link><pubDate>Tue, 20 Sep 2022 08:42:11 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:086638b5-f17d-4c69-bd26-20c672cb5fa9</guid><dc:creator>Sigurd</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;You can try adding a&amp;nbsp;&lt;span&gt;AT+CFUN=0 at the end, ref.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;img style="max-height:240px;max-width:320px;" src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/pastedimage1663663187228v1.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;i.e.&lt;/p&gt;
&lt;p&gt;AT+CFUN=0&lt;br /&gt;AT+CEREG=5&lt;br /&gt;AT+COPS=1,2,&amp;quot;44010&amp;quot;&lt;br /&gt;AT%XSYSTEMMODE=1,0,0,0&lt;br /&gt;AT+CGDCONT=0,&amp;quot;IP&amp;quot;,&amp;quot;soracom.io&amp;quot;&lt;br /&gt;AT+CGAUTH=0,1,&amp;quot;sora&amp;quot;,&amp;quot;sora&amp;quot;&lt;br /&gt;AT+CFUN=0&lt;br /&gt;AT+CFUN=1&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Alternatively, use can try to use the PDN lib and set&amp;nbsp;CONFIG_PDN_DEFAULT_APN , see these links:&lt;/p&gt;
&lt;p&gt;&lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/nrf/libraries/modem/pdn.html#configuration"&gt;https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/nrf/libraries/modem/pdn.html#configuration&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/nrf/samples/nrf9160/pdn/README.html"&gt;https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/nrf/samples/nrf9160/pdn/README.html&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href="https://github.com/nrfconnect/sdk-nrf/tree/main/samples/nrf9160/pdn"&gt;https://github.com/nrfconnect/sdk-nrf/tree/main/samples/nrf9160/pdn&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>