<?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>Modifying the Light Switch example Mesh SDK 2.2.0</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/39896/modifying-the-light-switch-example-mesh-sdk-2-2-0</link><description>Hello mates, 
 I am modifying the Light Switch Client and Server example, to send messages uint8_t from the client to the server instead of use bool on_ff with no luck yet, for the behavior I am experimenting I am not sure if the provisioner play a role</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 08 Nov 2018 02:27:27 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/39896/modifying-the-light-switch-example-mesh-sdk-2-2-0" /><item><title>RE: Modifying the Light Switch example Mesh SDK 2.2.0</title><link>https://devzone.nordicsemi.com/thread/156402?ContentTypeID=1</link><pubDate>Thu, 08 Nov 2018 02:27:27 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:892f53a8-a3b8-49a9-844c-2636cbceebcc</guid><dc:creator>Hust</dc:creator><description>&lt;p&gt;Thank you so much. It&amp;#39;s worked&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Modifying the Light Switch example Mesh SDK 2.2.0</title><link>https://devzone.nordicsemi.com/thread/155816?ContentTypeID=1</link><pubDate>Fri, 02 Nov 2018 20:55:28 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:125d2137-5b8a-4b8d-8163-f0cf1ab1a1d2</guid><dc:creator>MeliodasD</dc:creator><description>&lt;p&gt;Hi Hust,&lt;/p&gt;
&lt;p&gt;I removed the length&amp;nbsp;filter for both examples, look for the conditionals using&amp;nbsp;&lt;span&gt;GENERIC_ONOFF_SET_MINLEN and&amp;nbsp;&lt;strong&gt;GENERIC_ONOFF_SET_MAXLEN&lt;/strong&gt;&amp;nbsp;&lt;/span&gt;&amp;nbsp;inside &lt;strong&gt;generic_onoff_client&lt;/strong&gt;.c and &lt;strong&gt;generic_onoff_server&lt;/strong&gt;.c also you have to&amp;nbsp;look at&amp;nbsp;&lt;strong&gt;message_set_packet_create&lt;/strong&gt;() for the client and&amp;nbsp;&lt;strong&gt;get_params_validate&lt;/strong&gt;() for the server, don&amp;#39;t&amp;nbsp;forget to change your data type if you are planning&amp;nbsp;transmit some different than bool type&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Modifying the Light Switch example Mesh SDK 2.2.0</title><link>https://devzone.nordicsemi.com/thread/155733?ContentTypeID=1</link><pubDate>Fri, 02 Nov 2018 11:33:57 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:138c23de-884d-4e28-b5b5-215b2adbde3c</guid><dc:creator>awneil</dc:creator><description>[quote userid="21590" url="~/f/nordic-q-a/39896/modifying-the-light-switch-example-mesh-sdk-2-2-0/155698"]I tried other 8 byte value[/quote]
&lt;p&gt;Do you really mean 8-&lt;em&gt;byte&lt;/em&gt;&amp;nbsp;values - or 8-&lt;em&gt;&lt;strong&gt;bit&lt;/strong&gt;&lt;/em&gt; values?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Modifying the Light Switch example Mesh SDK 2.2.0</title><link>https://devzone.nordicsemi.com/thread/155698?ContentTypeID=1</link><pubDate>Fri, 02 Nov 2018 09:12:55 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:160f0e31-4bce-40e5-8719-195cfe7dec2f</guid><dc:creator>Hust</dc:creator><description>&lt;p&gt;Hi, I tried the same thing you tried. Could you please tell me where to remove this condition?&amp;nbsp;&lt;/p&gt;
&lt;p&gt;When I tried to send value 0 or 1, it&amp;#39;s worked but when I tried other 8 byte value, it&amp;#39;s not worked anymore.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Sorry for my bad English.&amp;nbsp;&lt;/p&gt;
[quote userid="71716" url="~/f/nordic-q-a/39896/modifying-the-light-switch-example-mesh-sdk-2-2-0"]inside the &lt;strong&gt;server&lt;/strong&gt; code at&amp;nbsp;&lt;strong&gt;app_onoff&lt;/strong&gt;.c I watch for&amp;nbsp;&lt;strong&gt;generic_onoff_state_set_cb() &lt;/strong&gt;handler and it is triggered only when received 0 or 1[/quote]
&lt;p&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Modifying the Light Switch example Mesh SDK 2.2.0</title><link>https://devzone.nordicsemi.com/thread/155219?ContentTypeID=1</link><pubDate>Tue, 30 Oct 2018 18:58:26 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ba57a653-67c1-4706-ab4e-0434d43957f9</guid><dc:creator>MeliodasD</dc:creator><description>&lt;p&gt;Solution:&lt;/p&gt;
&lt;p&gt;After added my new fields/variables to the generic_onoff_set_msg_pkt_t and generic_onoff_status_params_t and I removed the length &amp;quot;filters&amp;quot; for the client and server code examples, now I am able to transmit larger payloads and different data formats&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Modifying the Light Switch example Mesh SDK 2.2.0</title><link>https://devzone.nordicsemi.com/thread/154946?ContentTypeID=1</link><pubDate>Mon, 29 Oct 2018 18:57:05 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9b96552a-4d95-4cc3-8263-fb4fde6d9c6d</guid><dc:creator>awneil</dc:creator><description>&lt;p&gt;So take a look at the Dimmer example next;&amp;nbsp; to see how a wider-ranging value is handled - using the Generic Level monitor ...&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Modifying the Light Switch example Mesh SDK 2.2.0</title><link>https://devzone.nordicsemi.com/thread/154943?ContentTypeID=1</link><pubDate>Mon, 29 Oct 2018 18:46:01 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3f0af481-108b-4dc7-bd07-d38fdce2b71c</guid><dc:creator>MeliodasD</dc:creator><description>&lt;p&gt;it is clear for me the Generic On/Off model is just for transmitting&amp;nbsp;on/off, but I am using this example for a better understanding, and using it as a starting point&amp;nbsp;from the Light On/Off model to a custom model&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Modifying the Light Switch example Mesh SDK 2.2.0</title><link>https://devzone.nordicsemi.com/thread/154743?ContentTypeID=1</link><pubDate>Sat, 27 Oct 2018 08:14:31 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:294d1aee-c0fe-4dfe-a21a-f15847e5ebc4</guid><dc:creator>awneil</dc:creator><description>&lt;p&gt;Surely the whole point of the Generic On/Off model is that it models a strictly binary, on/off state? The clue is in the name!&lt;/p&gt;
&lt;p&gt;If you want something more than just on/off, wouldn&amp;#39;t it be better to look to a different model which supports that?&lt;/p&gt;
&lt;p&gt;How about the Generic &lt;strong&gt;Level&lt;/strong&gt; model?&lt;/p&gt;
&lt;p&gt;&lt;a href="https://en.wikipedia.org/wiki/Bluetooth_mesh_networking#Generic_models"&gt;en.wikipedia.org/.../Bluetooth_mesh_networking&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;[quote userid="71716" url="~/f/nordic-q-a/39896/modifying-the-light-switch-example-mesh-sdk-2-2-0"][/quote]&lt;/p&gt;
&lt;p&gt;&amp;nbsp;as far as I know the provisioner&amp;nbsp;is used only to join nodes in the network and authentication.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;That&amp;#39;s the way I see it: once the other nodes have been provisioned, I can turn off the Provisioner node - and the others will just keep on working, and communicating with each other.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>