Bluetooth Mesh Scene Server Model#
Bluetooth Mesh Scene Server Model.
Bluetooth Mesh Scene model Server functionality.
Modules#
sl_btmesh_evt_scene_server_get
sl_btmesh_evt_scene_server_register_get
sl_btmesh_evt_scene_server_recall
sl_btmesh_evt_scene_server_publish
sl_btmesh_evt_scene_server_compact_recall
Functions#
Macros#
Function Documentation#
sl_btmesh_scene_server_init#
sl_status_t sl_btmesh_scene_server_init (uint16_t elem_index)
[in] | elem_index | Index of the element. |
Initialize the Scene Server model. Server does not have any internal configurations. The command only activates the model in the mesh stack.
Returns
SL_STATUS_OK if successful. Error code otherwise.
14914
of file /mnt/raid/workspaces/ws.cynwT2I6w/overlay/gsdk/protocol/bluetooth/build/native/mesh_app/inc/sl_btmesh_api.h
sl_btmesh_scene_server_deinit#
sl_status_t sl_btmesh_scene_server_deinit (uint16_t elem_index)
[in] | elem_index | Index of the element. |
De-initializes the Scene Server model.
Returns
SL_STATUS_OK if successful. Error code otherwise.
14925
of file /mnt/raid/workspaces/ws.cynwT2I6w/overlay/gsdk/protocol/bluetooth/build/native/mesh_app/inc/sl_btmesh_api.h
sl_btmesh_scene_server_reset_register#
sl_status_t sl_btmesh_scene_server_reset_register (uint16_t elem_index)
[in] | elem_index | Index of the element. This can be either element of the updated model or the element of the scene model responsible for controlling the scene of the updated model. |
Reset register value. This command should be invoked if state of a model has been modified in such a manner that it can't be in the scene, which is indicated by the scene register.
Returns
SL_STATUS_OK if successful. Error code otherwise.
14940
of file /mnt/raid/workspaces/ws.cynwT2I6w/overlay/gsdk/protocol/bluetooth/build/native/mesh_app/inc/sl_btmesh_api.h
sl_btmesh_scene_server_enable_compact_recall_events#
sl_status_t sl_btmesh_scene_server_enable_compact_recall_events ()
Switch to compact reporting for recalled states. Compact state reduces amount buffering memory needed by the scene recall and is recommended for devices with big amount of models or for devices in environment with lots of bluetooth advertisement traffic.
When compact mode is active sl_btmesh_evt_scene_server_compact_recall is generated instead of several sl_btmesh_evt_generic_server_state_recall events.
Returns
SL_STATUS_OK if successful. Error code otherwise.
14957
of file /mnt/raid/workspaces/ws.cynwT2I6w/overlay/gsdk/protocol/bluetooth/build/native/mesh_app/inc/sl_btmesh_api.h
Macro Definition Documentation#
sl_btmesh_cmd_scene_server_init_id#
#define sl_btmesh_cmd_scene_server_init_idValue:
0x00500028
14755
of file /mnt/raid/workspaces/ws.cynwT2I6w/overlay/gsdk/protocol/bluetooth/build/native/mesh_app/inc/sl_btmesh_api.h
sl_btmesh_cmd_scene_server_deinit_id#
#define sl_btmesh_cmd_scene_server_deinit_idValue:
0x01500028
14756
of file /mnt/raid/workspaces/ws.cynwT2I6w/overlay/gsdk/protocol/bluetooth/build/native/mesh_app/inc/sl_btmesh_api.h
sl_btmesh_cmd_scene_server_reset_register_id#
#define sl_btmesh_cmd_scene_server_reset_register_idValue:
0x02500028
14757
of file /mnt/raid/workspaces/ws.cynwT2I6w/overlay/gsdk/protocol/bluetooth/build/native/mesh_app/inc/sl_btmesh_api.h
sl_btmesh_cmd_scene_server_enable_compact_recall_events_id#
#define sl_btmesh_cmd_scene_server_enable_compact_recall_events_idValue:
0x03500028
14758
of file /mnt/raid/workspaces/ws.cynwT2I6w/overlay/gsdk/protocol/bluetooth/build/native/mesh_app/inc/sl_btmesh_api.h
sl_btmesh_rsp_scene_server_init_id#
#define sl_btmesh_rsp_scene_server_init_idValue:
0x00500028
14759
of file /mnt/raid/workspaces/ws.cynwT2I6w/overlay/gsdk/protocol/bluetooth/build/native/mesh_app/inc/sl_btmesh_api.h
sl_btmesh_rsp_scene_server_deinit_id#
#define sl_btmesh_rsp_scene_server_deinit_idValue:
0x01500028
14760
of file /mnt/raid/workspaces/ws.cynwT2I6w/overlay/gsdk/protocol/bluetooth/build/native/mesh_app/inc/sl_btmesh_api.h
sl_btmesh_rsp_scene_server_reset_register_id#
#define sl_btmesh_rsp_scene_server_reset_register_idValue:
0x02500028
14761
of file /mnt/raid/workspaces/ws.cynwT2I6w/overlay/gsdk/protocol/bluetooth/build/native/mesh_app/inc/sl_btmesh_api.h
sl_btmesh_rsp_scene_server_enable_compact_recall_events_id#
#define sl_btmesh_rsp_scene_server_enable_compact_recall_events_idValue:
0x03500028
14762
of file /mnt/raid/workspaces/ws.cynwT2I6w/overlay/gsdk/protocol/bluetooth/build/native/mesh_app/inc/sl_btmesh_api.h