<?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>how to get values not in handle cache ?(open mesh)</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/21754/how-to-get-values-not-in-handle-cache-open-mesh</link><description>hi:
I want to get a handle value data, which it is&amp;#39;t in cache. please tell me how to do.
thanks.</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 04 May 2017 05:34:42 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/21754/how-to-get-values-not-in-handle-cache-open-mesh" /><item><title>RE: how to get values not in handle cache ?(open mesh)</title><link>https://devzone.nordicsemi.com/thread/85438?ContentTypeID=1</link><pubDate>Thu, 04 May 2017 05:34:42 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a74655ab-c9e4-4834-927c-cd9ee72ad505</guid><dc:creator>mr_sev</dc:creator><description>&lt;p&gt;thank you Sigurd!
I know what to do！&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: how to get values not in handle cache ?(open mesh)</title><link>https://devzone.nordicsemi.com/thread/85437?ContentTypeID=1</link><pubDate>Wed, 03 May 2017 10:31:10 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a0ffe1ac-b94a-4205-84f8-f30043a52c55</guid><dc:creator>Sigurd</dc:creator><description>&lt;p&gt;How many handle-value pair have you added? If you don&amp;#39;t want it to fall out of the &amp;quot;data cache&amp;quot; just make it persistent with the &lt;code&gt;rbc_mesh_persistence_set()&lt;/code&gt; function. That is the easiest approach.
If you don&amp;#39;t want to do that, you could manually add it the mesh again with the function &lt;code&gt;rbc_mesh_value_enable(...)&lt;/code&gt;, and add the value with &lt;code&gt;rbc_mesh_value_set(...)&lt;/code&gt; from a device that have the data you want to transmit.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: how to get values not in handle cache ?(open mesh)</title><link>https://devzone.nordicsemi.com/thread/85436?ContentTypeID=1</link><pubDate>Tue, 02 May 2017 13:38:35 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7c85f415-6e47-4cc1-bb81-de7c0caa1b12</guid><dc:creator>mr_sev</dc:creator><description>&lt;p&gt;thank you for your answer, but what i wan&amp;#39;t to know is what i do when handle-value pair falls out of the &amp;quot;data cache&amp;quot;.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: how to get values not in handle cache ?(open mesh)</title><link>https://devzone.nordicsemi.com/thread/85435?ContentTypeID=1</link><pubDate>Tue, 02 May 2017 13:02:15 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e4013a3c-5860-4f56-a65b-b22c0e2aa5fa</guid><dc:creator>Sigurd</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;First make sure that you have actually received the handle-value pair you are trying to access. If you suddenly no longer can find the handle-value pair, it could have fallen out of the “data cache”. If a value falls out of the &amp;quot;data cache&amp;quot;, the device stops retransmitting it and you no longer have access to the value through the &lt;a href="https://github.com/NordicSemiconductor/nRF51-ble-bcast-mesh/blob/a6d35c5fbcdc997d7847ff53892b145e4915c683/nRF51/rbc_mesh/rbc_mesh.h#L451"&gt;rbc_mesh_value_get()&lt;/a&gt; function. This can happen if you receive so many new handle-value pairs, that you no longer have enough memory for the old handle-value pair.&lt;/p&gt;
&lt;p&gt;If you want to ensure that a handle-value pair is not forgotten, you can use the function &lt;a href="https://github.com/NordicSemiconductor/nRF51-ble-bcast-mesh/blob/a6d35c5fbcdc997d7847ff53892b145e4915c683/nRF51/rbc_mesh/rbc_mesh.h#L417"&gt;rbc_mesh_persistence_set()&lt;/a&gt; to achieve this. Note that setting too many persistent values in the cache will reduce the framework&amp;#39;s ability to retransmit non-persistent values, it is therefore recommended to be conservative about the usage of this flag. But, It is recommended that all values that the device intends to write to later are marked as persistent.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>