<?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>light lightness model example app questions</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/71827/light-lightness-model-example-app-questions</link><description>Hello, 
 I am trying to create an application that uses the mesh light lightness [client/server] model using the example application as a guide and I have a few questions 
 1. what is the intended use case of light_lightness_client_callbacks_t ? A client</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 23 Feb 2021 15:43:50 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/71827/light-lightness-model-example-app-questions" /><item><title>RE: light lightness model example app questions</title><link>https://devzone.nordicsemi.com/thread/295893?ContentTypeID=1</link><pubDate>Tue, 23 Feb 2021 15:43:50 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:32e57474-622c-4dcb-9060-880f5799b3c3</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;HI Richard,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;1. Note that the&amp;nbsp;&lt;span&gt;LIGHT_LIGHTNESS_OPCODE_STATUS&amp;nbsp; is not a get opcode, it&amp;#39;s the status message from the server send to the client, after the client send the&amp;nbsp;LIGHT_LIGHTNESS_OPCODE_GET. If you have a look at the&amp;nbsp;handle_get() function in the server, you can find that it will reply with&amp;nbsp;LIGHT_LIGHTNESS_OPCODE_STATUS in&amp;nbsp;status_actual_send().&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;2. I haven&amp;#39;t tried myself but I don&amp;#39;t see a problem if you simply only send&amp;nbsp;LIGHT_LIGHTNESS_OPCODE_* opcode from the client. Note that in mesh the client doesn&amp;#39;t need to know/discover the service of the server before it can communicate, not like in BLE. It&amp;#39;s only the provisioner doing composition data to get the structure of the server. If you have control over the provisioner&amp;nbsp;it should be fine. Or even if you don&amp;#39;t have control over the provisioner, I don&amp;#39;t think it would be a problem if the generic model is missing.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: light lightness model example app questions</title><link>https://devzone.nordicsemi.com/thread/295672?ContentTypeID=1</link><pubDate>Mon, 22 Feb 2021 15:55:30 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:21d01c7a-d6e7-45e3-818f-d4111bb1fc45</guid><dc:creator>Richard R</dc:creator><description>&lt;p&gt;Hi Hung,&lt;/p&gt;
&lt;p&gt;@1: I understand the call sequence that ends with responding to&amp;nbsp;&lt;span&gt;LIGHT_LIGHTNESS_OPCODE_STATUS. What I am not clear is that why a &lt;span style="font-family:&amp;#39;courier new&amp;#39;, courier;"&gt;&lt;strong&gt;client&lt;/strong&gt;&lt;/span&gt; device need to respond at all. If you look at &lt;span style="font-family:&amp;#39;courier new&amp;#39;, courier;"&gt;Section 6.6.1&lt;/span&gt; in your reply, the client side messages are &lt;span style="font-family:&amp;#39;courier new&amp;#39;, courier;"&gt;[O]ptional or [C]onditional.&amp;nbsp;&lt;span style="font-family:arial, helvetica, sans-serif;"&gt;I am trying to understand from a usage perspective, what kind of a device would be sending messages to a &lt;span style="font-family:&amp;#39;courier new&amp;#39;, courier;"&gt;light-lightness-client&lt;/span&gt; to get its status. Normally, one will get status from a &lt;strong&gt;server&lt;/strong&gt; device, not a &lt;strong&gt;client&lt;/strong&gt; device.&lt;br /&gt;&lt;br /&gt;@2. I also want to understand that the nRF5-mesh-SDK does not have limitations if I want to just use &lt;span style="font-family:&amp;#39;courier new&amp;#39;, courier;"&gt;light-lightness&lt;/span&gt; from the model (without creating instances or bindings of the &lt;span style="font-family:&amp;#39;courier new&amp;#39;, courier;"&gt;generic&lt;/span&gt; models like the example code).&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: light lightness model example app questions</title><link>https://devzone.nordicsemi.com/thread/295668?ContentTypeID=1</link><pubDate>Mon, 22 Feb 2021 15:43:09 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5d8a4078-d7e6-41bb-bae9-68aaa7507867</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;Hi Richard,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;1. You can always search in the whole project to find any usage of a function (Ctrl+Shift+F).&amp;nbsp;&lt;br /&gt;For example if you do a full search for &amp;quot;lightness_status_cb&amp;quot; , you can find that it&amp;#39;s called inside&amp;nbsp;status_handle() in light_lightness_client.c&amp;nbsp;&lt;/p&gt;
&lt;p&gt;This function&amp;nbsp;status_handle() is called when handling opcode&amp;nbsp;LIGHT_LIGHTNESS_OPCODE_STATUS (check&amp;nbsp;m_opcode_handlers[]) This is the message to be sent back after you send the status get message.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;2. If you don&amp;#39;t plan to allow 3rd party devices to connect to your mesh network you can define your own proprietary model and it&amp;#39;s completely fine with that. We provide an example of simple_on_off model in models/proprietary folder. Regarding the requirement by the spec, please refer to the note in the spec to check if it&amp;#39;s mandatory or not:&lt;br /&gt;&lt;img alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/555x1025/__key/communityserver-discussions-components-files/4/0245.pastedimage1614007116308v1.png" /&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;3. As far as I know to be able to qualify for a certain Bluetooth Sig Model you must have all the mandatory M that marked in the spec:&amp;nbsp;&lt;br /&gt;&lt;img alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/629x420/__key/communityserver-discussions-components-files/4/5025.pastedimage1614008581258v2.png" /&gt;&lt;/p&gt;
&lt;p&gt;Note that you don&amp;#39;t need to qualify the model if you don&amp;#39;t want to, you still can use Bluetooth Mesh without qualifying the Bluetooth Sig model.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>