<?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 of Scene Server in BLE mesh with nRF52840</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/122338/use-of-scene-server-in-ble-mesh-with-nrf52840</link><description>Hi, 
 I&amp;#39;d like to know how can I implement a Scene Server for one or more Generic Onoff Servers (typically leds). 
 I read the documentation related to Scene Server and I understood that I have to implement the following functions: 
 
 scene_store 
 scene_recall</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 19 Jun 2025 14:42:20 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/122338/use-of-scene-server-in-ble-mesh-with-nrf52840" /><item><title>RE: Use of Scene Server in BLE mesh with nRF52840</title><link>https://devzone.nordicsemi.com/thread/539918?ContentTypeID=1</link><pubDate>Thu, 19 Jun 2025 14:42:20 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:eb06f43d-f8d3-4f4a-a439-602bc9a44112</guid><dc:creator>stefanogradozzi</dc:creator><description>&lt;p&gt;Thank you for your answer,&lt;/p&gt;
&lt;p&gt;I implemented scenes succesfully!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Use of Scene Server in BLE mesh with nRF52840</title><link>https://devzone.nordicsemi.com/thread/539871?ContentTypeID=1</link><pubDate>Thu, 19 Jun 2025 11:50:20 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:61f414f5-0ea1-4b17-aa03-2594afdcba18</guid><dc:creator>tesc</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;For Generic OnOff servers, scenes are already implemented (see &amp;lt;sdk folder&amp;gt;\nrf\subsys\bluetooth\mesh\gen_onoff_srv.c), so there is no need to manually implement it. The documentation at &lt;a href="https://docs.nordicsemi.com/bundle/ncs-latest/page/nrf/libraries/bluetooth/mesh/scene_srv.html#adding_scene_data_for_a_model"&gt;Adding scene data for a model&lt;/a&gt; is for reference if you need to implement the functionality for a custom model.&lt;/p&gt;
&lt;p&gt;Make sure to add the Scene Server at the first element containing a Generic OnOff server which you want to include in the scene (or at an element before that), and check that configs (such as CONFIG_BT_MESH_SCENES_MAX) are appropriate.&lt;/p&gt;
&lt;p&gt;For code reference for a device with a scene server added, see the &lt;a href="https://docs.nordicsemi.com/bundle/ncs-latest/page/nrf/samples/bluetooth/mesh/light_ctrl/README.html"&gt;Bluetooth Mesh: Light fixture sample&lt;/a&gt;, where the scene server is added using the BT_MESH_MODEL_SCENE_SRV macro in the elements listing near line 248 in &amp;lt;sdk folder&amp;gt;\nrf\samples\bluetooth\mesh\light_ctrl\src\model_handler.c.&lt;/p&gt;
&lt;p&gt;Regards,&lt;br /&gt;Terje&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>