CTL Client#

Color Tunable Lighting (CTL) Client model. Used to set the dim level or the color temperature of a light source (CTL Server) on another node. This component extends the lighting client with functions to change the temperature by, or to change the temperature to a certain percentage. For more details about lighting please see Lighting Client. This component is prepared for integration into SOC applications. This is a Low-Code component. For example, changing all CTL Server nodes' color temperature by 1 percent can be achieved by adding an event handler for mesh events and calling the following code: #include "sl_btmesh_ctl_client.h" void event_handler(sl_btmesh_msg_t *evt) { case sl_btmesh_evt_node_initialized_id: if (evt->data.evt_node_initialized.provisioned) { sl_btmesh_change_temperature(1); } break; }

Functions#

void
sl_btmesh_ctl_client_set_temperature(uint8_t temperature_percent)
void
sl_btmesh_ctl_client_set_lightness(uint8_t lightness_percent)

Function Documentation#

sl_btmesh_ctl_client_set_temperature#

void sl_btmesh_ctl_client_set_temperature (uint8_t temperature_percent)
Parameters
TypeDirectionArgument NameDescription
uint8_t[in]temperature_percent

Defines new color temperature value as percentage Valid values 0-100 %

This function changes the temperature and send it to the server.


sl_btmesh_ctl_client_set_lightness#

void sl_btmesh_ctl_client_set_lightness (uint8_t lightness_percent)
Parameters
TypeDirectionArgument NameDescription
uint8_t[in]lightness_percent

Defines new lightness value as percentage Valid values 0-100 %

This function changes the lightness and send it to the server.