<h3>Contribution description</h3>
<p><a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="833874915" data-permission-text="Title is private" data-url="https://github.com/RIOT-OS/RIOT/issues/16203" data-hovercard-type="pull_request" data-hovercard-url="/RIOT-OS/RIOT/pull/16203/hovercard" href="https://github.com/RIOT-OS/RIOT/pull/16203">#16203</a> introduced multiple convenience functions to access resources of different types. While string resources are <code>NULL</code> terminated, that's not the case for opaque ones. As the length is not always known beforehand, this fixes the API to return the amount of read bytes. As the APIs were not part of the last release, no need to deprecate the old ones.</p>
<p>Also <code>lwm2m_set_objlink_by_path</code> is fixed.</p>
<h3>Testing procedure</h3>
<ul>
<li><code>examples/wakaama</code> should work as usual</li>
<li>The get/set functions should still work (can be tested by checking the resources in the application above)</li>
</ul>
<h3>Issues/PRs references</h3>


<hr>

<h4>You can view, comment on, or merge this pull request online at:</h4>
<p>  <a href='https://github.com/RIOT-OS/RIOT/pull/16691'>https://github.com/RIOT-OS/RIOT/pull/16691</a></p>

<h4>Commit Summary</h4>
<ul>
  <li>pkg/wakaama/common: fix lwm2m_set_objlink_by_path</li>
  <li>pkg/wakaama/common: return length when reading strings and opaques</li>
</ul>

<h4>File Changes</h4>
<ul>
  <li>
    <strong>M</strong>
    <a href="https://github.com/RIOT-OS/RIOT/pull/16691/files#diff-f675597250e305b7990d9b3b02efd61e82e5b9ca09a6e2a57c04035023cafe49">pkg/wakaama/contrib/lwm2m_client_connection.c</a>
    (3)
  </li>
  <li>
    <strong>M</strong>
    <a href="https://github.com/RIOT-OS/RIOT/pull/16691/files#diff-2f68b9e6fb0f302c8da0297be27fe682c5b9c1117945db796d9bb49f24ca4329">pkg/wakaama/contrib/objects/common.c</a>
    (71)
  </li>
  <li>
    <strong>M</strong>
    <a href="https://github.com/RIOT-OS/RIOT/pull/16691/files#diff-de3b377f790d4240630fc961e7a5cae3c2c528f816e4951d0355e4357225a72e">pkg/wakaama/include/objects/common.h</a>
    (44)
  </li>
</ul>

<h4>Patch Links:</h4>
<ul>
  <li><a href='https://github.com/RIOT-OS/RIOT/pull/16691.patch'>https://github.com/RIOT-OS/RIOT/pull/16691.patch</a></li>
  <li><a href='https://github.com/RIOT-OS/RIOT/pull/16691.diff'>https://github.com/RIOT-OS/RIOT/pull/16691.diff</a></li>
</ul>

<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br />You are receiving this because you are subscribed to this thread.<br />Reply to this email directly, <a href="https://github.com/RIOT-OS/RIOT/pull/16691">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/ABE7WYGSIZRMU643R2I2MRLT2JKXFANCNFSM5BH743HQ">unsubscribe</a>.<img src="https://github.com/notifications/beacon/ABE7WYB5S3SL452STJTOO3DT2JKXFA5CNFSM5BH743H2YY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4OIC77GA.gif" height="1" width="1" alt="" /></p>
<script type="application/ld+json">[
{
"@context": "http://schema.org",
"@type": "EmailMessage",
"potentialAction": {
"@type": "ViewAction",
"target": "https://github.com/RIOT-OS/RIOT/pull/16691",
"url": "https://github.com/RIOT-OS/RIOT/pull/16691",
"name": "View Pull Request"
},
"description": "View this Pull Request on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>