<?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>OnOff example model state changing in the server</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/84330/onoff-example-model-state-changing-in-the-server</link><description>Hi!, 
 I am trying to create an application with BT Mesh using the nrF52840 DK and two nrF52840 Dongles with an OnOff Model Server and an OnOff Model Client respectively. The example from the SDK (I have taken that as the base code) turns the LED On in</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Sat, 19 Feb 2022 17:42:02 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/84330/onoff-example-model-state-changing-in-the-server" /><item><title>RE: OnOff example model state changing in the server</title><link>https://devzone.nordicsemi.com/thread/353987?ContentTypeID=1</link><pubDate>Sat, 19 Feb 2022 17:42:02 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:34c62298-bb20-4e7a-9924-672721d34002</guid><dc:creator>Carlos Galiana</dc:creator><description>&lt;p&gt;Okey it is solved. I had to use the led_work function.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Thank you for your time.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: OnOff example model state changing in the server</title><link>https://devzone.nordicsemi.com/thread/353942?ContentTypeID=1</link><pubDate>Fri, 18 Feb 2022 18:06:18 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:cee3e64e-36e6-4f0d-8261-9613291730de</guid><dc:creator>Carlos Galiana</dc:creator><description>&lt;p&gt;Hi Mttrinh. I am not explaining myself well. First of all, I am using Zephyr API (I think I forget to mention it). I have made a&amp;nbsp; couple of schemes of the situation.&lt;/p&gt;
&lt;p&gt;In the first one I represent what I think that the OnOff model example does:&lt;/p&gt;
&lt;p&gt;&lt;img src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/pastedimage1645205106711v2.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;In the next one I represent what I want to do:&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;img src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/pastedimage1645205182977v3.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;The part I dont understand is how to change the state of the model with the button on the server and send a status message to the client.&lt;/p&gt;
&lt;p&gt;Thank you for your time.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: OnOff example model state changing in the server</title><link>https://devzone.nordicsemi.com/thread/353819?ContentTypeID=1</link><pubDate>Fri, 18 Feb 2022 11:27:18 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7a071148-7264-43ea-94ae-9d3ca1bb0d11</guid><dc:creator>Mttrinh</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;The light switch server example will by default send out a status message when you change the LED on the board, see&amp;nbsp;&lt;strong&gt;button_event_handler()&lt;/strong&gt; inside the example . On the light switch example you can find the status message callback here, &lt;strong&gt;app_generic_onoff_client_status_cb&lt;/strong&gt;. The LED on the client is set using this function&amp;nbsp;&lt;strong&gt;hal_led_pin_set()&lt;/strong&gt;, have a look inside the&amp;nbsp;&lt;strong&gt;button_event_handler() &lt;/strong&gt;in light switch client example.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: OnOff example model state changing in the server</title><link>https://devzone.nordicsemi.com/thread/353457?ContentTypeID=1</link><pubDate>Wed, 16 Feb 2022 18:44:36 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:bc0de073-8d38-4b91-a008-394e5601f4b3</guid><dc:creator>Carlos Galiana</dc:creator><description>&lt;p&gt;Hi Mttrinh! I am so sorry for the delay.&lt;/p&gt;
&lt;p&gt;I have tried to change the LED status in a button callback function of the DK, but a status message is not sended to the Dongle, so I guess I have to call the led_status function myself. My problem is that I dont know how to extrapolate the parameters from the function that put the LED On initially (led-set when I pressed the button on the Dongle) to led_status function inside the callback of the button I have pressed. &amp;iquest;Do you know how I could solve this problem?&lt;br /&gt;&lt;br /&gt;Thank you for your time.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: OnOff example model state changing in the server</title><link>https://devzone.nordicsemi.com/thread/351477?ContentTypeID=1</link><pubDate>Mon, 07 Feb 2022 09:22:01 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4a5c79f3-fa34-4c2d-bb37-ef08c7d21a97</guid><dc:creator>Mttrinh</dc:creator><description>&lt;p&gt;Hi,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;For your first question:&lt;/p&gt;
&lt;p&gt;A status message should be sent out from the server node when changing the LED on the DK. You can change the LED on the dongle based on the received status message.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;For your second question:&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I suggest you create a separate ticket for this.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>