Use of Scene Server in BLE mesh with nRF52840

Hi,

I'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
  • scene_recall_complete

and the structure:

  • BT_MESH_SCENE_ENTRY_SIG(onoff)
Is this correct?
Can you give me an example code with one or more generic onoff server and a scene server (I'd like to recall a scene in which one or more led are lighted on)?
Thanks
Best regards
Related