LC Server#
Lightness Control (LC) Server model. Used to support the control and reporting functionality of a node with a light lightness controller that can monitor occupancy and ambient light level sensors and adjust the dim level of a light. LC Server extends Lightness Server model and Generic OnOff Server. It also has a corresponding LC Setup Server model which is present in the same element. This component is prepared for integration into SOC applications. This is a No-Code component when added to an existing project using Light Lightness Server.
Functions#
Function Documentation#
sl_btmesh_lc_init#
sl_status_t sl_btmesh_lc_init (void )
Type | Direction | Argument Name | Description |
---|---|---|---|
void | N/A |
LC initialization. This should be called at each boot if provisioning is already done. Otherwise this function should be called after provisioning is completed.
Returns
Status of the initialization operation. Returns SL_STATUS_OK (0) if succeed, non-zero otherwise.
sl_btmesh_lc_get_mode#
uint8_t sl_btmesh_lc_get_mode (void )
Type | Direction | Argument Name | Description |
---|---|---|---|
void | N/A |
This function is getter for current light controller mode.
Returns
current light controller mode
sl_btmesh_lc_server_on_event#
void sl_btmesh_lc_server_on_event (sl_btmesh_msg_t * evt)
Type | Direction | Argument Name | Description |
---|---|---|---|
sl_btmesh_msg_t * | [in] | evt | Pointer to incoming event. |
Handle LC Server events.
This function is called automatically after enabling the component.
sl_btmesh_lc_server_on_node_reset#
void sl_btmesh_lc_server_on_node_reset (void )
Type | Direction | Argument Name | Description |
---|---|---|---|
void | N/A |
Component node reset handler. Clearing component specific nvm content during node reset. This function is called automatically by Universal Configurator after enabling the component.