<?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 Composite Observe</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/82905/lwm2m-composite-observe</link><description>Hi, 
 I&amp;#39;m working on an LwM2M client that reads three sensors in sequence every N minutes and notifies the server about the value change. 
 The server supports the LwM2M 1.1 observe composite feature. It is based on leshan-server-cf 2.0.0-M5. 
 When the</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 18 Jan 2022 11:37:32 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/82905/lwm2m-composite-observe" /><item><title>RE: LwM2M Composite Observe</title><link>https://devzone.nordicsemi.com/thread/348262?ContentTypeID=1</link><pubDate>Tue, 18 Jan 2022 11:37:32 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ec8a4b68-edd6-4fb0-965f-7d841447d1bc</guid><dc:creator>e-va</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;thanks for the hint with the fetch.&lt;/p&gt;
&lt;p&gt;I did ask about composite observe in the zephyr users mailing list and found out that composite observe is not supported in the current zephyr version (2.7) but it will be in the future. (&lt;a href="https://lists.zephyrproject.org/g/users/message/2850?p=%2C%2C%2C20%2C0%2C0%2C0%3A%3Arecentpostdate%2Fsticky%2C%2Cobserve%2C20%2C2%2C0%2C88259935"&gt;https://lists.zephyrproject.org/g/users/message/2850?p=%2C%2C%2C20%2C0%2C0%2C0%3A%3Arecentpostdate%2Fsticky%2C%2Cobserve%2C20%2C2%2C0%2C88259935&lt;/a&gt;)&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;BR&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;PS: for anyone who requires workaround which does not need to be perfectly clean - I&amp;#39;ve implemented the Report resource of the Virtual Observe Notify LwM2M object. I skipped the ObserveLinks resource since Corelnk format is not supported yet.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: LwM2M Composite Observe</title><link>https://devzone.nordicsemi.com/thread/344911?ContentTypeID=1</link><pubDate>Thu, 23 Dec 2021 10:24:26 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0ff63a98-c57f-4cef-b8b3-e15bbb5b09f2</guid><dc:creator>Achim Kraus</dc:creator><description>&lt;p&gt;Your logs shows a &amp;quot;CON-FETCH&amp;quot;. Are you sure, that the zephyr lwm2m-client (coap-server) supports FETCH as well? 4.05 / METHOD_NOT_ALLOWED seems to indicate, that it doesn&amp;#39;t support FETCH.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: LwM2M Composite Observe</title><link>https://devzone.nordicsemi.com/thread/344906?ContentTypeID=1</link><pubDate>Thu, 23 Dec 2021 09:51:22 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4ec8e4ed-059c-4678-9f69-79bf284b5bde</guid><dc:creator>&amp;#216;yvind</dc:creator><description>&lt;p&gt;Hi,&amp;nbsp;&lt;br /&gt;&lt;br /&gt;I&amp;#39;m afraid I won&amp;#39;t be able to provide an answer until January, as our experts are out on Christmas vacation.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I would recommend asking in the &lt;a href="https://discord.com/channels/720317445772017664/886300320643317760"&gt;official Zephyr OS Discord channel&lt;/a&gt; for more quicker support.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Kind regards,&lt;br /&gt;Øyvind&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: LwM2M Composite Observe</title><link>https://devzone.nordicsemi.com/thread/344855?ContentTypeID=1</link><pubDate>Wed, 22 Dec 2021 23:00:48 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6b87eb30-84a4-4961-9bcc-07bab91c3733</guid><dc:creator>e-va</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;thanks for the quick response despite the holiday season.&lt;/p&gt;
&lt;p&gt;I&amp;#39;ve set the device lwm2m log level to debug but there was really nothing of interest in the resulting logs.&lt;br /&gt;&lt;br /&gt;On the server I&amp;#39;ve also increased the log level and found out that the coap response to the composite observation request is method not allowed 4.05.&lt;/p&gt;
&lt;p&gt;For my situation an example where composite observe is used / implemented would help already since the device firmware I used for the latest tests is the lwm2m client (in SDK version 1.8.0) with three temperature object instances where the values are updated in a worker thread every 5 seconds.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;The temperature values and the worker handler look like this:&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;static struct float32_value temp_float = { 0, 0 };&lt;br /&gt;static struct float32_value temp_float1 = { -1, 0 };&lt;br /&gt;static struct float32_value temp_float2 = { -3, 0 };&lt;br /&gt;&lt;br /&gt;static void mock_update_temperature_work_handler(struct k_work *work)&lt;br /&gt;{&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; LOG_WRN(&amp;quot;update temperature measurements&amp;quot;);&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; temp_float.val1 += 1;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; NOTIFY_OBSERVER(3303, 0, SENSOR_VALUE_RID);&lt;br /&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; temp_float1.val1 += 1;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; NOTIFY_OBSERVER(3303, 1, SENSOR_VALUE_RID);&lt;br /&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; temp_float2.val1 += 1;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; NOTIFY_OBSERVER(3303, 1, SENSOR_VALUE_RID);&lt;br /&gt;}&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Here is the server output, in case it helps:&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;2021-12-22 19:05:57,171 DEBUG Client - STARTING OBSERVATIONS&lt;br /&gt;2021-12-22 19:05:57,287 DEBUG ReliabilityLayer - Exchange[L4] send request&lt;br /&gt;2021-12-22 19:05:57,288 DEBUG ReliabilityLayer - Exchange[L4] prepare retransmission for CON-FETCH&amp;nbsp; MID=&amp;nbsp;&amp;nbsp; -1, Token=null, OptionSet={&amp;quot;Observe&amp;quot;:0, &amp;quot;Content-Format&amp;quot;:&amp;quot;application/senml+json&amp;quot;, &amp;quot;Accept&amp;quot;:&amp;quot;application/senml+json&amp;quot;}, &amp;quot;[{&amp;quot;n&amp;quot;:&amp;quot;/3303/0/5700&amp;quot;},{&amp;quot;n&amp;quot;:&amp;quot;/330&amp;quot;.. 64 bytes&lt;br /&gt;2021-12-22 19:05:57,289 DEBUG BaseMatcher - registering observe request CON-FETCH&amp;nbsp; MID=15760, Token=null, OptionSet={&amp;quot;Observe&amp;quot;:0, &amp;quot;Content-Format&amp;quot;:&amp;quot;application/senml+json&amp;quot;, &amp;quot;Accept&amp;quot;:&amp;quot;application/senml+json&amp;quot;}, &amp;quot;[{&amp;quot;n&amp;quot;:&amp;quot;/3303/0/5700&amp;quot;},{&amp;quot;n&amp;quot;:&amp;quot;/330&amp;quot;.. 64 bytes &amp;nbsp;&lt;br /&gt;2021-12-22 19:05:57,290 DEBUG InMemoryMessageExchangeStore - [LWM2M Server-coap://] Exchange[L4] added with KeyMID[172.24.213.114:49358-15760], CON-FETCH&amp;nbsp; MID=15760, Token=21A18DD012D20B91, OptionSet={&amp;quot;Observe&amp;quot;:0, &amp;quot;Content-Format&amp;quot;:&amp;quot;application/senml+json&amp;quot;, &amp;quot;Accept&amp;quot;:&amp;quot;application/senml+json&amp;quot;}, &amp;quot;[{&amp;quot;n&amp;quot;:&amp;quot;/3303/0/5700&amp;quot;},{&amp;quot;n&amp;quot;:&amp;quot;/330&amp;quot;.. 64 bytes&lt;br /&gt;2021-12-22 19:05:57,291 DEBUG InMemoryMessageExchangeStore - [LWM2M Server-coap://] Exchange[L4] added with token KeyToken[21A18DD012D20B91], CON-FETCH&amp;nbsp; MID=15760, Token=21A18DD012D20B91, OptionSet={&amp;quot;Observe&amp;quot;:0, &amp;quot;Content-Format&amp;quot;:&amp;quot;application/senml+json&amp;quot;, &amp;quot;Accept&amp;quot;:&amp;quot;application/senml+json&amp;quot;}, &amp;quot;[{&amp;quot;n&amp;quot;:&amp;quot;/3303/0/5700&amp;quot;},{&amp;quot;n&amp;quot;:&amp;quot;/330&amp;quot;.. 64 bytes&lt;br /&gt;2021-12-22 19:05:57,291 DEBUG UdpMatcher - tracking open request [KeyMID[172.24.213.114:49358-15760], KeyToken[21A18DD012D20B91]]&lt;br /&gt;2021-12-22 19:05:57,295 DEBUG UDPConnector - UDPConnector (Thread[UDP-Sender-/0.0.0.0:15727[0],5,Californium/Elements]) sent 82 bytes to 172.24.213.114:49358&lt;br /&gt;2021-12-22 19:05:57,826 DEBUG UDPConnector - UDPConnector (0.0.0.0:15727) received 33 bytes from 172.24.213.114:49358&lt;br /&gt;2021-12-22 19:05:57,827 DEBUG SweepDeduplicator - add exchange for KeyMID[172.24.213.114:49358-22644]&lt;br /&gt;2021-12-22 19:05:57,834 DEBUG RegistrationHandler - Updated registration org.eclipse.leshan.server.registration.UpdatedRegistration@6c268f64 by RegistrationUpdate [registrationId=Lc3H9nK4v0, identity=Identity /172.24.213.114:49358[unsecure], lifeTimeInSec=600, smsNumber=null, bindingMode=null, objectLinks=null]&lt;br /&gt;2021-12-22 19:05:57,838 DEBUG ReliabilityLayer - Exchange[R5] send response null-2.04&amp;nbsp;&amp;nbsp; MID=&amp;nbsp;&amp;nbsp; -1, Token=null, OptionSet={}, &amp;lt;empty data&amp;gt;&lt;br /&gt;2021-12-22 19:05:57,839 DEBUG Exchange - Exchange[R5, complete]!&lt;br /&gt;2021-12-22 19:05:57,840 DEBUG Exchange - Remote Exchange[R5, complete] completed ACK-2.04&amp;nbsp;&amp;nbsp; MID=22644, Token=4C6ED8E100BF4DBE, OptionSet={}, &amp;lt;empty data&amp;gt;!&lt;br /&gt;2021-12-22 19:05:57,845 DEBUG UDPConnector - UDPConnector (Thread[UDP-Sender-/0.0.0.0:15727[0],5,Californium/Elements]) sent 12 bytes to 172.24.213.114:49358&lt;br /&gt;2021-12-22 19:05:57,846 DEBUG ClientManager - Update client&lt;br /&gt;2021-12-22 19:05:58,003 DEBUG UDPConnector - UDPConnector (0.0.0.0:15727) received 12 bytes from 172.24.213.114:49358&lt;br /&gt;2021-12-22 19:05:58,006 DEBUG BlockwiseLayer - [LWM2M Server-coap://]&amp;nbsp; received error ACK-4.05&amp;nbsp;&amp;nbsp; MID=15760, Token=21A18DD012D20B91, OptionSet={}, &amp;lt;empty data&amp;gt;:&lt;br /&gt;2021-12-22 19:05:58,008 DEBUG Exchange - Exchange[L4, complete]!&lt;br /&gt;2021-12-22 19:05:58,009 DEBUG InMemoryMessageExchangeStore - [LWM2M Server-coap://] removing Exchange[L4, complete] for token KeyToken[21A18DD012D20B91]&lt;br /&gt;2021-12-22 19:05:58,010 DEBUG InMemoryMessageExchangeStore - [LWM2M Server-coap://] removing Exchange[L4, complete] for MID KeyMID[172.24.213.114:49358-15760]&lt;br /&gt;2021-12-22 19:05:58,012 DEBUG Exchange - local Exchange[L4, complete] completed CON-FETCH&amp;nbsp; MID=15760, Token=21A18DD012D20B91, OptionSet={&amp;quot;Observe&amp;quot;:0, &amp;quot;Content-Format&amp;quot;:&amp;quot;application/senml+json&amp;quot;, &amp;quot;Accept&amp;quot;:&amp;quot;application/senml+json&amp;quot;}, acked &amp;quot;[{&amp;quot;n&amp;quot;:&amp;quot;/3303/0/5700&amp;quot;},{&amp;quot;n&amp;quot;:&amp;quot;/330&amp;quot;.. 64 bytes!&lt;br /&gt;2021-12-22 19:05:58,013 DEBUG CoapSyncRequestObserver - Received coap response: ACK-4.05&amp;nbsp;&amp;nbsp; MID=15760, Token=21A18DD012D20B91, OptionSet={}, &amp;lt;empty data&amp;gt;&lt;br /&gt;2021-12-22 19:05:58,015 DEBUG ResourceTask - Client type is nrf9160dk_nrf9160&lt;br /&gt;2021-12-22 19:05:58,019 DEBUG BaseMatcher - observation with token Token=21A18DD012D20B91 not established, removing from observation store&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Best regards&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: LwM2M Composite Observe</title><link>https://devzone.nordicsemi.com/thread/344488?ContentTypeID=1</link><pubDate>Tue, 21 Dec 2021 07:35:39 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:42364cd7-6ff4-4d3f-b68b-4ed7281a8c2a</guid><dc:creator>&amp;#216;yvind</dc:creator><description>&lt;p&gt;Hello,&amp;nbsp;&lt;br /&gt;&lt;br /&gt;Do you have any log outputs from the device itself? Are there any errors in this log?&lt;br /&gt;&lt;br /&gt;Please note that due to Christmas holiday our team is lighter staffed than normal, and response time is longer than normal.&amp;nbsp;&lt;br /&gt;&lt;br /&gt;Kind regards,&lt;br /&gt;Øyvind&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>