<?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>[LWM2M] How to properly set Bootstrap Server</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/65823/lwm2m-how-to-properly-set-bootstrap-server</link><description>Hi, 
 I am trying to enable Bootstrap support. 
 Therefore I set &amp;quot;CONFIG_LWM2M_RD_CLIENT_SUPPORT_BOOTSTRAP=y&amp;quot; in prj.conf. 
 I also set &amp;quot;CONFIG_APP_LWM2M_SERVER&amp;quot; and the port with &amp;quot;CONFIG_LWM2M_PEER_PORT&amp;quot;. 
 But the LWM2M engine reports that the bootstrap</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 23 Sep 2020 14:08:07 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/65823/lwm2m-how-to-properly-set-bootstrap-server" /><item><title>RE: [LWM2M] How to properly set Bootstrap Server</title><link>https://devzone.nordicsemi.com/thread/271134?ContentTypeID=1</link><pubDate>Wed, 23 Sep 2020 14:08:07 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:473743ed-f168-412a-8652-27800eb752db</guid><dc:creator>Didrik Rokhaug</dc:creator><description>&lt;p&gt;I am not aware of any plans for adding bootstrapping support to the lwm2m_client sample at the moment.&lt;/p&gt;
&lt;p&gt;But, I agree that it would be useful to have. I have to look a bit more into how the keys and LTE link is handled during the bootstrapping process, as the nRF9160 can not write new keys to the modem while the LTE link is active. But if that does not turn out to be a big problem we should be able add and merge a PR quite quickly.&lt;/p&gt;
&lt;p&gt;Edit: The developer is already working on it. Adding bootstrapping support itself is not hard, but making it play nicely with DTLS and the modem is presenting a few challenges (as I suspected).&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: [LWM2M] How to properly set Bootstrap Server</title><link>https://devzone.nordicsemi.com/thread/270445?ContentTypeID=1</link><pubDate>Mon, 21 Sep 2020 06:18:50 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9a4b7dae-111c-4fdc-9f04-9c8c9b5a9c95</guid><dc:creator>mschweig</dc:creator><description>&lt;p&gt;Hi Didrik,&lt;/p&gt;
&lt;p&gt;I can confirm that this is a fix for the issue, thank you. When will this be merged into sdk? &lt;br /&gt;&lt;br /&gt;Kind regards, &lt;br /&gt;Manuel&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: [LWM2M] How to properly set Bootstrap Server</title><link>https://devzone.nordicsemi.com/thread/270132?ContentTypeID=1</link><pubDate>Thu, 17 Sep 2020 13:54:51 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:bf56f0c2-4044-4d4e-ae19-6136f5cf35c6</guid><dc:creator>Didrik Rokhaug</dc:creator><description>&lt;p&gt;What we were missing was a few code lines that set the Bootstrap-server resource of the Security object instance to true during the initialization.&lt;/p&gt;
&lt;p&gt;When I add&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="c_cpp"&gt;#if defined(CONFIG_LWM2M_RD_CLIENT_SUPPORT_BOOTSTRAP)
	/* Mark 1st instance of security object as a bootstrap server */
	lwm2m_engine_set_u8(&amp;quot;0/0/1&amp;quot;, 1);

	/* Create 2nd instance of server and security objects needed for
	 * bootstrap process
	 */
	lwm2m_engine_create_obj_inst(&amp;quot;0/1&amp;quot;);
	lwm2m_engine_create_obj_inst(&amp;quot;1/1&amp;quot;);
#endif /* CONFIG_LWM2M_RD_CLIENT_SUPPORT_BOOTSTRAP */&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;at the end of the lwm2m_init_security function in lwm2m_client/src/lwm2m/lwm2m_security.c, the device is able to find and connect to the bootstrap server.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: [LWM2M] How to properly set Bootstrap Server</title><link>https://devzone.nordicsemi.com/thread/269903?ContentTypeID=1</link><pubDate>Wed, 16 Sep 2020 13:46:56 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:06111959-6e26-4ed8-bab0-0a37692abbf9</guid><dc:creator>Didrik Rokhaug</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Just a quick update:&lt;/p&gt;
&lt;p&gt;I have been trying to set up bootstrapping using the &lt;a href="https://leshan.eclipseprojects.io/bs/"&gt;Leshan demo server&lt;/a&gt;, but are currently seeing the same error that you do.&lt;/p&gt;
&lt;p&gt;Based on some modem traces I have taken, it looks to me like it is trying to connect to /rd instead of /bs, even though bootstrapping is enabled.&lt;/p&gt;
&lt;p&gt;I&amp;#39;ll continue to investigate, and let you know when I know more.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Didrik&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: [LWM2M] How to properly set Bootstrap Server</title><link>https://devzone.nordicsemi.com/thread/269453?ContentTypeID=1</link><pubDate>Mon, 14 Sep 2020 15:32:33 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:953d7c39-b631-47ed-a371-8e673fcffac0</guid><dc:creator>mschweig</dc:creator><description>&lt;p&gt;Hi Didrik,&lt;/p&gt;
&lt;p&gt;yes I definitely set CONFIG_APP_LWM2M_SERVER to the correct server.&lt;br /&gt;&lt;br /&gt;After some debugging it seems to me that the configured server is not properly handed to the LwM2M Engine if bootstrap is enabled, since the engine does not find any instance of CONFIG_APP_LWM2M_SERVER.&lt;/p&gt;
&lt;div&gt;
&lt;div&gt;sm_select_next_sec_inst() returns -ENOENT&lt;/div&gt;
&lt;/div&gt;
&lt;p&gt;To be sure, I also tried different servers.&lt;br /&gt;&lt;br /&gt;Kind regards, &lt;br /&gt;Manuel&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: [LWM2M] How to properly set Bootstrap Server</title><link>https://devzone.nordicsemi.com/thread/269450?ContentTypeID=1</link><pubDate>Mon, 14 Sep 2020 15:20:42 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a57d148b-235b-4b96-92b9-10f2a1e3fa2b</guid><dc:creator>Didrik Rokhaug</dc:creator><description>&lt;p&gt;Hi.&lt;/p&gt;
&lt;p&gt;It seems to me like you have configured your application correctly, but I will try to set it up myself in the next couple of days.&lt;/p&gt;
&lt;p&gt;But, just to be sure, did you set CONFIG_APP_LWM2M_SERVER to the bootstrap server?&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Didrik&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>