<?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 - initialization issues(lwm2m Client Sample)</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/94534/lwm2m---initialization-issues-lwm2m-client-sample</link><description>Good day 
 I am attempting to use lwm2m to post temperature sensor data. At the moment I&amp;#39;m trying to to initialize object with ID 3300 (generic sensor)but it is not appearing on the Leshan Demo Server. 
 My process of initialization is as follows: 
 </description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 13 Dec 2022 14:59:06 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/94534/lwm2m---initialization-issues-lwm2m-client-sample" /><item><title>RE: Lwm2m - initialization issues(lwm2m Client Sample)</title><link>https://devzone.nordicsemi.com/thread/400420?ContentTypeID=1</link><pubDate>Tue, 13 Dec 2022 14:59:06 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d9f090a7-20dc-4292-a6d3-c0b09bb48928</guid><dc:creator>Hkhan7861</dc:creator><description>&lt;p&gt;Good afternoon&lt;/p&gt;
&lt;p&gt;Thank you so much for the feedback.&amp;nbsp; I was able to use what you suggested!&lt;/p&gt;
&lt;p&gt;Kind regards,&lt;/p&gt;
&lt;p&gt;Hassan&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Lwm2m - initialization issues(lwm2m Client Sample)</title><link>https://devzone.nordicsemi.com/thread/400161?ContentTypeID=1</link><pubDate>Mon, 12 Dec 2022 13:57:44 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f30b70bd-6dc9-4f8b-968c-bf50094753cf</guid><dc:creator>Didrik Rokhaug</dc:creator><description>&lt;p&gt;Hi, and sorry for the late reply.&lt;/p&gt;
&lt;p&gt;The documentation is a bit outdated. The lwm2m library no longer uses the custom float32_value_t and float64_value_t types.&lt;/p&gt;
&lt;p&gt;Instead, they now use the regular float and double types.&lt;/p&gt;
&lt;p&gt;Simply changing the type of the sensor_value is all that is needed to make the value appear in Leshan.&lt;/p&gt;
&lt;p&gt;Please see this updated .diff&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/0880.added_5F00_custom_5F00_sensor.diff"&gt;devzone.nordicsemi.com/.../0880.added_5F00_custom_5F00_sensor.diff&lt;/a&gt;&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 - initialization issues(lwm2m Client Sample)</title><link>https://devzone.nordicsemi.com/thread/399931?ContentTypeID=1</link><pubDate>Fri, 09 Dec 2022 13:06:05 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:99c484d5-9a56-418f-9763-aab7433e35c8</guid><dc:creator>Hkhan7861</dc:creator><description>&lt;p&gt;Please let me know about any feedback as to why Leshan isnt updating as well please.&amp;nbsp; Thank you !&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Lwm2m - initialization issues(lwm2m Client Sample)</title><link>https://devzone.nordicsemi.com/thread/399642?ContentTypeID=1</link><pubDate>Thu, 08 Dec 2022 12:16:21 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:de28e202-4609-4b45-818b-2bfe89de44d3</guid><dc:creator>Hkhan7861</dc:creator><description>&lt;p&gt;Good day&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;I created another instance and the function was created as expected.&amp;nbsp; Thank you for the suggestion!&amp;nbsp; I am able to set the sensor values within my main.c file. The&amp;nbsp;&lt;span&gt;lwm2m_engine_set_float function returns 0 but I more often than not receive a timeout server side.&amp;nbsp; Have you any idea how to reduce this?&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Lwm2m - initialization issues(lwm2m Client Sample)</title><link>https://devzone.nordicsemi.com/thread/399497?ContentTypeID=1</link><pubDate>Wed, 07 Dec 2022 15:44:23 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5e5b3b19-3045-4b6f-918d-b08de17d8e0a</guid><dc:creator>Didrik Rokhaug</dc:creator><description>&lt;p&gt;I tried to add a custom sensor myself to the lwm2m_client sample, following your code.&lt;/p&gt;
&lt;p&gt;You can see the changes I made to the sample here: &lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/added_5F00_custom_5F00_sensor.diff"&gt;devzone.nordicsemi.com/.../added_5F00_custom_5F00_sensor.diff&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Creating the second instance of the object works as expected, and I can see it appear in Leshan. When I read the sensor value, the callback is called. However, Leshan always shows the value as 0.0, even though the callback should change the value each time it is called.&lt;/p&gt;
&lt;p&gt;But, I don&amp;#39;t get the errors that you are seeing.&lt;/p&gt;
&lt;p&gt;I&amp;#39;ll reach out to our LwM2M experts to see if we are doing something wrong when setting the value.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Lwm2m - initialization issues(lwm2m Client Sample)</title><link>https://devzone.nordicsemi.com/thread/399234?ContentTypeID=1</link><pubDate>Tue, 06 Dec 2022 14:56:35 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2402d09c-9a3f-4d3d-9a34-e6c45064129e</guid><dc:creator>Hkhan7861</dc:creator><description>&lt;p&gt;Good afternoon&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Once I enable the generic or temperature sensors, how do I set the sensor values.&amp;nbsp; The functions i&amp;#39;m using are not working.&amp;nbsp; I intend to get temperatures from a UART, convert is to a double and then use&amp;nbsp;&lt;/p&gt;
&lt;div&gt;
&lt;div&gt;&lt;span&gt;lwm2m_engine_set_float&amp;nbsp; to set the sensor value.&amp;nbsp; Is this the right way to do it?&amp;nbsp; When I&amp;nbsp;do this I&amp;nbsp;get the above mentioned errors.&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;p&gt;kind regards,&lt;/p&gt;
&lt;p&gt;Hassan&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Lwm2m - initialization issues(lwm2m Client Sample)</title><link>https://devzone.nordicsemi.com/thread/399233?ContentTypeID=1</link><pubDate>Tue, 06 Dec 2022 14:48:07 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:93acd139-da12-4b14-9608-712826063344</guid><dc:creator>Didrik Rokhaug</dc:creator><description>&lt;p&gt;Is there a reason for why you don&amp;#39;t use the temperature sensor object?&lt;/p&gt;
[quote user=""]I am aware that something must be added to the prj file to allow the use of the generic sensor(id:3300).[/quote]
&lt;p&gt;Did you enable CONFIG_LWM2M_IPSO_GENERIC_SENSOR?&lt;/p&gt;
&lt;p&gt;Are you modifying the lwm2m_client sample?&lt;/p&gt;
&lt;p&gt;It already enables and uses the generic sensor object for the gas sensor. So you need to either increase the count (and use another instance), or disable the gas sensor from the sample.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Lwm2m - initialization issues(lwm2m Client Sample)</title><link>https://devzone.nordicsemi.com/thread/399085?ContentTypeID=1</link><pubDate>Tue, 06 Dec 2022 06:45:03 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c0e6e93c-3980-4a61-821f-30baef66b138</guid><dc:creator>Hkhan7861</dc:creator><description>&lt;p&gt;Thank you for the feedback!&lt;/p&gt;
&lt;p&gt;Kind regards,&lt;/p&gt;
&lt;p&gt;Hassan&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Lwm2m - initialization issues(lwm2m Client Sample)</title><link>https://devzone.nordicsemi.com/thread/399041?ContentTypeID=1</link><pubDate>Mon, 05 Dec 2022 18:02:13 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:467042d6-fa48-4f5a-a6fb-005da40037ee</guid><dc:creator>Didrik Rokhaug</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;I am looking into this, but need a day or two to test this myself.&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>