<?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>Multiple AWS_IOT_BROKER_HOST_NAME</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/114273/multiple-aws_iot_broker_host_name</link><description>I have a IoT design that needs to support multiple AWS service endpoints, depending on which region the device is operating or which SIM is being used. For example, ao3k4sem2hoef- ats.iot.ca-central-1.amazonaws.com or ao3k4sem2hoef- ats.iot.ap-east-1</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 03 Sep 2024 06:36:35 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/114273/multiple-aws_iot_broker_host_name" /><item><title>RE: Multiple AWS_IOT_BROKER_HOST_NAME</title><link>https://devzone.nordicsemi.com/thread/500875?ContentTypeID=1</link><pubDate>Tue, 03 Sep 2024 06:36:35 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:28e66a73-9af3-4e13-94d5-3c5a28a0b8d6</guid><dc:creator>Sigurd Hellesvik</dc:creator><description>[quote user="flau"]I also found&amp;nbsp;AT%XEPCO=0 to do&amp;nbsp;CONFIG_PDN_LEGACY_PCO=y.&amp;nbsp; Is that correct?[/quote]
&lt;p&gt;I think that it will be the same for the legacy yes. But I am not 100% sure so I advise that you try.&lt;/p&gt;
&lt;p&gt;In general, all these configs are in the end just commands that are being sent to the modem, so as long as the modem will let you send new commands to undo that, you should be able to do these things dynamically.&lt;/p&gt;
&lt;p&gt;and by the way, for the last thing, devs add:&lt;/p&gt;
&lt;p&gt;&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;span dir="ltr"&gt;Yes, it&amp;#39;s possible to configure the default PDN during runtime, but only when modem is in offline or minimal functionality mode, i.e. +CFUN=4 or +CFUN=0.&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&amp;quot;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Multiple AWS_IOT_BROKER_HOST_NAME</title><link>https://devzone.nordicsemi.com/thread/500838?ContentTypeID=1</link><pubDate>Mon, 02 Sep 2024 16:43:40 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2e61c35d-5625-4773-9fe2-98ba4a57fe3d</guid><dc:creator>flau</dc:creator><description>&lt;p&gt;Ok.&amp;nbsp; Let me give that a try.&amp;nbsp; I also found&amp;nbsp;AT%XEPCO=0 to do&amp;nbsp;CONFIG_PDN_LEGACY_PCO=y.&amp;nbsp; Is that correct?&amp;nbsp; Do I still need to override the defaults?&lt;/p&gt;
&lt;p&gt;Thank you.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Multiple AWS_IOT_BROKER_HOST_NAME</title><link>https://devzone.nordicsemi.com/thread/500789?ContentTypeID=1</link><pubDate>Mon, 02 Sep 2024 13:11:37 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2150fc0b-92b4-474f-8d8e-b74b63b57931</guid><dc:creator>Sigurd Hellesvik</dc:creator><description>&lt;p&gt;&amp;quot;&lt;br /&gt;&lt;span&gt;&lt;span dir="ltr"&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;Yes it&amp;#39;s possible to configure PDN at any time using the AT command which is already used for &lt;code&gt;CONFIG_PDN_DEFAULT_APN&lt;/code&gt;.&lt;/p&gt;
&lt;p&gt;&lt;a title="https://docs.nordicsemi.com/bundle/ref_at_commands/page/ref/at_commands/packet_domain/cgdcont_set.html" href="https://docs.nordicsemi.com/bundle/ref_at_commands/page/REF/at_commands/packet_domain/cgdcont_set.html" rel="noopener noreferrer" target="_blank"&gt;https://docs.nordicsemi.com/bundle/ref_at_commands/page/REF/at_commands/packet_domain/cgdcont_set.html&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&amp;quot;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Multiple AWS_IOT_BROKER_HOST_NAME</title><link>https://devzone.nordicsemi.com/thread/500759?ContentTypeID=1</link><pubDate>Mon, 02 Sep 2024 12:04:40 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:85855aed-a74e-48e5-ad14-7b024ca89146</guid><dc:creator>Sigurd Hellesvik</dc:creator><description>&lt;p&gt;Looking at the code for this, it is not obvious to me if this is possible or not,so I have asked our devs.&lt;/p&gt;
&lt;p&gt;I will let you know when they reply.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Multiple AWS_IOT_BROKER_HOST_NAME</title><link>https://devzone.nordicsemi.com/thread/500309?ContentTypeID=1</link><pubDate>Thu, 29 Aug 2024 00:20:02 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:98e4cc2d-1602-469e-8263-33ec64009396</guid><dc:creator>flau</dc:creator><description>&lt;p&gt;This works nicely.&amp;nbsp; For a particular SIM which does NB-IoT, I also have to set these in the prj.conf.&lt;/p&gt;
&lt;div&gt;
&lt;div&gt;&lt;span&gt;CONFIG_PDN=y&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;CONFIG_PDN_DEFAULTS_OVERRIDE=y&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&lt;/span&gt;&lt;span&gt;CONFIG_PDN_LEGACY_PCO=y&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&lt;/span&gt;&lt;span&gt;CONFIG_PDN_DEFAULT_APN=&amp;quot;nbiot&amp;quot;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;Would I be able to set these at runtime?&amp;nbsp; For the other SIM which does LTE-M, I don&amp;#39;t need to set these.&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;Thanks.&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Multiple AWS_IOT_BROKER_HOST_NAME</title><link>https://devzone.nordicsemi.com/thread/500212?ContentTypeID=1</link><pubDate>Wed, 28 Aug 2024 12:39:49 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e6276d9a-3f32-4f19-b43f-db94f5fc1f66</guid><dc:creator>flau</dc:creator><description>&lt;p&gt;Thank you, Sigurd.&amp;nbsp; I will give that a try.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Multiple AWS_IOT_BROKER_HOST_NAME</title><link>https://devzone.nordicsemi.com/thread/500205?ContentTypeID=1</link><pubDate>Wed, 28 Aug 2024 12:27:47 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:25e5c96f-31f9-4b73-83ee-ec3336d5607e</guid><dc:creator>Sigurd Hellesvik</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Looks like you can set hostname in aws_iot_connect(). See &lt;a href="https://github.com/nrfconnect/sdk-nrf/blob/3d2536083c1cba5b2540a147b2c60704ff383b54/subsys/net/lib/aws_iot/src/aws_iot.c#L660-L661"&gt;here&lt;/a&gt;. &lt;br /&gt;Also &lt;a href="https://docs.nordicsemi.com/bundle/ncs-latest/page/nrf/libraries/networking/aws_iot.html"&gt;documented&lt;/a&gt;:&lt;/p&gt;
&lt;p&gt;&amp;quot;For information on how to set this value at runtime, refer to &lt;a href="https://docs.nordicsemi.com/bundle/ncs-latest/page/nrf/libraries/networking/aws_iot.html#lib-set-aws-hostname"&gt;&lt;span&gt;Setting the AWS host name at runtime&lt;/span&gt;&lt;/a&gt;.&amp;quot;&lt;/p&gt;
&lt;p&gt;Regards,&lt;br /&gt;Sigurd Hellesvik&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>