<?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>Use a REPLY instead of a PUBLISH to transmit state from a server to a client, (on a transmission initiated by the client)</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/30958/use-a-reply-instead-of-a-publish-to-transmit-state-from-a-server-to-a-client-on-a-transmission-initiated-by-the-client</link><description>Hello, 
 Here is a summary of my main transmission protocol: 
 The (unique) client contact one of the many servers to get the value of a particular server&amp;#39;s state. 
 In the light_switch application the server, in the handle_set_cb use the access_model_reply</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 28 Feb 2018 11:28:39 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/30958/use-a-reply-instead-of-a-publish-to-transmit-state-from-a-server-to-a-client-on-a-transmission-initiated-by-the-client" /><item><title>RE: Use a REPLY instead of a PUBLISH to transmit state from a server to a client</title><link>https://devzone.nordicsemi.com/thread/122267?ContentTypeID=1</link><pubDate>Wed, 28 Feb 2018 11:28:39 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b96ceba3-9ac8-42df-a818-6da8284e0d5b</guid><dc:creator>Max</dc:creator><description>&lt;p&gt;I just figured out, that the &lt;strong&gt;reliable_status_cb&amp;nbsp;&lt;/strong&gt; in &lt;strong&gt;simple_on_off_client.c&lt;/strong&gt; do exactly what I needed.&lt;/p&gt;
&lt;p&gt;in &lt;strong&gt; reliable_status_cb&lt;/strong&gt; :&lt;/p&gt;
&lt;p&gt;&amp;quot;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&amp;nbsp;&lt;strong&gt; simple_on_off_client_t * p_client = p_args&lt;/strong&gt;;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; NRF_MESH_ASSERT(p_client-&amp;gt;status_cb != NULL);&lt;br /&gt;&amp;nbsp; &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; __LOG(LOG_SRC_APP, LOG_LEVEL_INFO, &amp;quot;we got an Acknowledgment = %d \n&amp;quot;,&lt;strong&gt; p_client-&amp;gt;state.data.on_off)&lt;/strong&gt;;&lt;/p&gt;
&lt;p&gt;&amp;quot;&lt;/p&gt;
&lt;p&gt;No need for the publish anymore.&lt;/p&gt;
&lt;p&gt;In case someone is the same situation as I was.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>