<?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>https_client sample - configuration on README</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/113575/https_client-sample---configuration-on-readme</link><description>Hello, 
 I am starting to test the sample &amp;quot;https_client&amp;quot; on nrf9160 and expected to see it working (through LTE modem) 
 The execution hangs on the line k_sem_take(&amp;amp;network_connected_sem, K_FOREVER); just before the call of send_http_request(); so I tried</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 02 Aug 2024 12:19:18 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/113575/https_client-sample---configuration-on-readme" /><item><title>RE: https_client sample - configuration on README</title><link>https://devzone.nordicsemi.com/thread/496802?ContentTypeID=1</link><pubDate>Fri, 02 Aug 2024 12:19:18 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:37557ffc-ff8d-45f1-9cd1-a11638e606b6</guid><dc:creator>Rodrigo Aznar</dc:creator><description>&lt;p&gt;Thanks for the explanation Charlie&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;After updating to toolchain v2.7.0 I managed to get the results as expected for this sample:&lt;/p&gt;
&lt;p&gt;00&amp;gt; Looking up example.com&lt;br /&gt;00&amp;gt; Resolved 93.184.215.14 (AF_INET)&lt;br /&gt;00&amp;gt; Connecting to example.com:443&lt;br /&gt;00&amp;gt; Sent 61 bytes&lt;br /&gt;00&amp;gt; Received 372 bytes&lt;br /&gt;00&amp;gt; &lt;br /&gt;00&amp;gt; &amp;gt;&amp;nbsp;&amp;nbsp; HTTP/1.1 200 OK&lt;/p&gt;
&lt;p&gt;Since I am using RTT to see the logs I just had to add these options to the prj.conf:&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;div style="background-color:#1f1f1f;color:#cccccc;font-family:&amp;#39;Droid Sans Mono&amp;#39;, &amp;#39;monospace&amp;#39;, monospace;font-size:14px;font-weight:normal;line-height:19px;white-space:pre;"&gt;
&lt;div&gt;&lt;span style="color:#6a9955;"&gt;# Logging&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span style="color:#569cd6;"&gt;CONFIG_LOG&lt;/span&gt;&lt;span style="color:#cccccc;"&gt;=y&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span style="color:#569cd6;"&gt;CONFIG_LOG_PRINTK&lt;/span&gt;&lt;span style="color:#cccccc;"&gt;=y&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span style="color:#569cd6;"&gt;CONFIG_USE_SEGGER_RTT&lt;/span&gt;&lt;span style="color:#cccccc;"&gt;=y&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: https_client sample - configuration on README</title><link>https://devzone.nordicsemi.com/thread/496764?ContentTypeID=1</link><pubDate>Fri, 02 Aug 2024 07:31:51 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7146e023-3e06-4b28-848c-6936183640b4</guid><dc:creator>Charlie</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;I checked 2.7.0&lt;span&gt;\&lt;/span&gt;nrf\samples\net\https_client\build\https_client\zephyr\.config, which is list all the configuration used by building process.&lt;/p&gt;
&lt;p&gt;The configurations you mentioned are enabled in &amp;quot;.config&amp;quot;. They are configured either by default in Kconfig files or prj.conf and&amp;nbsp;&amp;nbsp;nrf\samples\net\https_client\boards\nrf9151dk_nrf9151_ns.conf(which includes&amp;nbsp;&lt;span&gt;CONFIG_LTE_LINK_CONTROL=y&lt;/span&gt;).&lt;/p&gt;
&lt;p&gt;Following is a ping test sample to verify network connection.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;&amp;gt; AT+CEREG=5

OK
&amp;gt; AT%XSYSTEMMODE=1,1,1,0

OK
&amp;gt; AT%XSYSTEMMODE?

%XSYSTEMMODE: 1,1,1,0

OK
&amp;gt; AT+CFUN=1

OK

+CEREG: 2,&amp;quot;81A3&amp;quot;,&amp;quot;03238D0A&amp;quot;,7

+CEREG: 1,&amp;quot;81A3&amp;quot;,&amp;quot;03238D0A&amp;quot;,7,0,2,&amp;quot;11100000&amp;quot;,&amp;quot;11100000&amp;quot;
&amp;gt; AT+CGDCONT?

+CGDCONT: 0,&amp;quot;IPV4V6&amp;quot;,&amp;quot;telenor.iot&amp;quot;,&amp;quot;10.241.198.xxxx 2A02:2121:0203:5892:0000:0066:CE82:xxxx&amp;quot;,0,0

OK
&amp;gt; AT#XPING=&amp;quot;www.google.com&amp;quot;,45,5000,5,1000

OK
#XPING: 0.088 seconds
#XPING: 0.198 seconds
#XPING: 0.165 seconds
#XPING: 0.136 seconds
#XPING: 0.214 seconds
#XPING: average 0.160 seconds&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Charlie&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: https_client sample - configuration on README</title><link>https://devzone.nordicsemi.com/thread/496653?ContentTypeID=1</link><pubDate>Thu, 01 Aug 2024 13:57:54 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0748c43b-b499-45a5-8c2d-01473f56669f</guid><dc:creator>Rodrigo Aznar</dc:creator><description>&lt;p&gt;Hi Charlie&lt;/p&gt;
&lt;p&gt;I can see the log &amp;quot;Connecting to the network&amp;quot; and a log &amp;quot;Connection sucessful&amp;quot; I put as below&lt;/p&gt;
&lt;div style="background-color:#1f1f1f;color:#cccccc;font-family:&amp;#39;Droid Sans Mono&amp;#39;, &amp;#39;monospace&amp;#39;, monospace;font-size:14px;font-weight:normal;line-height:19px;white-space:pre;"&gt;
&lt;div&gt;&lt;span style="color:#cccccc;"&gt; &lt;/span&gt;&lt;span style="color:#9cdcfe;"&gt;err&lt;/span&gt;&lt;span style="color:#cccccc;"&gt; &lt;/span&gt;&lt;span style="color:#d4d4d4;"&gt;=&lt;/span&gt;&lt;span style="color:#cccccc;"&gt; &lt;/span&gt;&lt;span style="color:#dcdcaa;"&gt;conn_mgr_all_if_connect&lt;/span&gt;&lt;span style="color:#cccccc;"&gt;(&lt;/span&gt;&lt;span style="color:#569cd6;"&gt;true&lt;/span&gt;&lt;span style="color:#cccccc;"&gt;);&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span style="color:#cccccc;"&gt; &lt;/span&gt;&lt;span style="color:#c586c0;"&gt;if&lt;/span&gt;&lt;span style="color:#cccccc;"&gt; (&lt;/span&gt;&lt;span style="color:#9cdcfe;"&gt;err&lt;/span&gt;&lt;span style="color:#cccccc;"&gt;) {&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span style="color:#cccccc;"&gt; &lt;/span&gt;&lt;span style="color:#dcdcaa;"&gt;printk&lt;/span&gt;&lt;span style="color:#cccccc;"&gt;(&lt;/span&gt;&lt;span style="color:#ce9178;"&gt;&amp;quot;conn_mgr_all_if_connect, error: &lt;/span&gt;&lt;span style="color:#9cdcfe;"&gt;%d&lt;/span&gt;&lt;span style="color:#d7ba7d;"&gt;\n&lt;/span&gt;&lt;span style="color:#ce9178;"&gt;&amp;quot;&lt;/span&gt;&lt;span style="color:#cccccc;"&gt;, &lt;/span&gt;&lt;span style="color:#9cdcfe;"&gt;err&lt;/span&gt;&lt;span style="color:#cccccc;"&gt;);&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span style="color:#cccccc;"&gt; &lt;/span&gt;&lt;span style="color:#c586c0;"&gt;return&lt;/span&gt;&lt;span style="color:#cccccc;"&gt; &lt;/span&gt;&lt;span style="color:#b5cea8;"&gt;0&lt;/span&gt;&lt;span style="color:#cccccc;"&gt;;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span style="color:#cccccc;"&gt; }&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span style="color:#cccccc;"&gt; &lt;/span&gt;&lt;span style="color:#c586c0;"&gt;else&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span style="color:#cccccc;"&gt; &lt;/span&gt;&lt;span style="color:#dcdcaa;"&gt;printk&lt;/span&gt;&lt;span style="color:#cccccc;"&gt;(&lt;/span&gt;&lt;span style="color:#ce9178;"&gt;&amp;quot;Connection sucessful &lt;/span&gt;&lt;span style="color:#d7ba7d;"&gt;\n&lt;/span&gt;&lt;span style="color:#ce9178;"&gt;&amp;quot;&lt;/span&gt;&lt;span style="color:#cccccc;"&gt;);&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;I am going to test the ping command but before I need to confirm:&lt;/p&gt;
&lt;p&gt;- in the https_client/boards/nrf9151dk_nrf9151_ns.conf (used to build the https_client)&amp;nbsp; &lt;span style="text-decoration:underline;"&gt;I cannot see&lt;/span&gt; the options below:&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;# Modem Library&lt;br /&gt;CONFIG_NRF_MODEM_LIB=y&lt;/p&gt;
&lt;p&gt;CONFIG_MODEM_KEY_MGMT=y&lt;/p&gt;
&lt;p&gt;# LTE Link Control&lt;br /&gt;CONFIG_LTE_LINK_CONTROL=y&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;These options are enabled for the sample lte_ble_gateway.&amp;nbsp;&amp;nbsp; Would not them be needed for the https_client work through LTE as well?&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Thanks&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: https_client sample - configuration on README</title><link>https://devzone.nordicsemi.com/thread/496637?ContentTypeID=1</link><pubDate>Thu, 01 Aug 2024 13:08:01 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:cab5d17e-07c4-43b5-ad02-4eeb4be4dde2</guid><dc:creator>Charlie</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Building HTTPS client sample for nRF9160DK should just work without any other config file.&lt;/p&gt;
&lt;p&gt;Can you confirm your SIM card can connect with local network?&amp;nbsp;&lt;/p&gt;
&lt;p&gt;You can use assert tracker V2 sample or &lt;a href="https://docs.nordicsemi.com/bundle/ncs-2.7.0/page/nrf/applications/serial_lte_modem/doc/slm_testing.html#icmp-at-commands"&gt;SLM ping command&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Charlie&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>