<?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>Keeping attribute table and model in sync</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/13147/keeping-attribute-table-and-model-in-sync</link><description>I think this is a rather common problem:
I want to expose a couple of variables from my model code (members of structs) as characteristics. Is there a simple and elegant way to bind such variables directly to the characteristics so that I do not have</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 14 Apr 2016 12:31:00 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/13147/keeping-attribute-table-and-model-in-sync" /><item><title>RE: Keeping attribute table and model in sync</title><link>https://devzone.nordicsemi.com/thread/50119?ContentTypeID=1</link><pubDate>Thu, 14 Apr 2016 12:31:00 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d3276c5f-7c4f-4c67-88d4-1b6c2ae1e23c</guid><dc:creator>bjorn-spockeli</dc:creator><description>&lt;p&gt;You can use the &lt;a href="http://infocenter.nordicsemi.com/topic/com.nordic.infocenter.s130.sds/dita/softdevices/s130/radio_notif/radio_notification.html?resultof=%22%72%61%64%69%6f%22%20%22%6e%6f%74%69%66%69%63%61%74%69%6f%6e%22%20%22%6e%6f%74%69%66%22%20"&gt;Radio Notification&lt;/a&gt; feature to make sure that you&amp;#39;re only using the attribute values after the SoftDevice has updated them.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Keeping attribute table and model in sync</title><link>https://devzone.nordicsemi.com/thread/50117?ContentTypeID=1</link><pubDate>Tue, 12 Apr 2016 21:35:01 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:afb47160-67a8-42ce-bb16-d55965fcd467</guid><dc:creator>Raphael</dc:creator><description>&lt;p&gt;Oh and another thing: How do I make sure that the SoftDevice does not interrupt my code doing calculations with inconsistent data because if e.g. my model code first uses the value of an attribute at timestep 1 and then the softdevice interrupts that code, changing the attribute value and the rest of the interrupted function now uses the attribute value at time step 2.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Keeping attribute table and model in sync</title><link>https://devzone.nordicsemi.com/thread/50116?ContentTypeID=1</link><pubDate>Tue, 12 Apr 2016 14:00:55 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5ec5efb7-fe41-4eb2-9871-c5f128451588</guid><dc:creator>Raphael</dc:creator><description>&lt;p&gt;OK, that sounds like a good idea. What do I need to do to let the SoftDevice know that I changed the variable so that it will propagate the update to the peer?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Keeping attribute table and model in sync</title><link>https://devzone.nordicsemi.com/thread/50118?ContentTypeID=1</link><pubDate>Tue, 12 Apr 2016 13:34:00 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:cc9fd382-0ef3-4665-b76d-06e7e83dddfd</guid><dc:creator>RK</dc:creator><description>&lt;p&gt;Why not just make the characteristic values user memory instead of stack memory, then you can point them directly at the data in the struct and reads will read the latest value and writes will write to the struct directly.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>