The AIROC Mesh Light Lightness Client module of the Mesh Models library provides a way for an application to control brightness level of the Light Lightness Servers in the mesh network optionally receive status information.
To include Light Lightness Client functionality, the device description shall contain WICED_BT_MESH_MODEL_LIGHT_LIGHTNESS_CLIENT.
◆ wiced_bt_mesh_light_lightness_client_callback_t
typedef void() wiced_bt_mesh_light_lightness_client_callback_t(uint16_t event, wiced_bt_mesh_event_t *p_event, void *p_data) |
Light Lightness Client callback is called by the Mesh Models library on receiving a message from the peer.
- Parameters
-
event | The event that the application should process (see Mesh Light Lightness Events) |
p_event | information about the message received. The same pointer should be used in the reply if required. |
p_data | Pointer to the data to send |
- Returns
- None
◆ wiced_bt_mesh_model_light_lightness_client_init()
Light Lightness Client Module initialization.
- Parameters
-
element_idx | Device element to where model is used |
p_callback | The application callback function that will be executed by the mesh models library when application action is required, or when a reply for the application request has been received. |
is_provisioned | If TRUE, the application is being restarted after being provisioned or after a power loss. If FALSE the model cleans up NVRAM on startup. |
- Returns
- None
◆ wiced_bt_mesh_model_light_lightness_client_message_handler()
wiced_bool_t wiced_bt_mesh_model_light_lightness_client_message_handler |
( |
wiced_bt_mesh_event_t * |
p_event, |
|
|
uint8_t * |
p_data, |
|
|
uint16_t |
data_len |
|
) |
| |
Light Lightness Client Message Handler.
The Mesh Core library calls this function for each message received. The function returns WICED_TRUE if the message is destined for this specific model and successfully processed, and returns WICED_FALSE otherwise.
- Parameters
-
p_event | Mesh event with information about received message. |
p_data | Pointer to the data portion of the message |
data_len | Length of the data in the message |
- Returns
- WICED_TRUE if the message is for this company ID/Model/Element Index combination, WICED_FALSE otherwise.
◆ wiced_bt_mesh_model_light_lightness_client_send_get()
The application can call this function to send the Light Lightness Get client message to the server.
- Parameters
-
p_event | Mesh event with the information about the message that has been created by the app for unsolicited message. |
- Returns
- WICED_BT_SUCCESS if message has been queued for transmission.
◆ wiced_bt_mesh_model_light_lightness_client_send_set()
The application can call this function to send Light Lightness Set client message to the server.
- Parameters
-
p_event | Mesh event with the information about the message that has been created by the app for unsolicited message. |
p_data | Pointer to the data to send |
- Returns
- WICED_BT_SUCCESS if message has been queued for transmission.
◆ wiced_bt_mesh_model_light_lightness_client_send_linear_get()
wiced_result_t wiced_bt_mesh_model_light_lightness_client_send_linear_get |
( |
wiced_bt_mesh_event_t * |
p_event | ) |
|
The application can call this function to send the Light Lightness Linear Get client message to the server.
- Parameters
-
p_event | Mesh event with the information about the message that has been created by the app for unsolicited message. |
- Returns
- WICED_BT_SUCCESS if message has been queued for transmission.
◆ wiced_bt_mesh_model_light_lightness_client_send_linear_set()
The application can call this function to send Light Lightness Linear Set client message to the server.
- Parameters
-
p_event | Mesh event with the information about the message that has been created by the app for unsolicited message. |
p_data | Pointer to the data to send |
- Returns
- WICED_BT_SUCCESS if message has been queued for transmission.
◆ wiced_bt_mesh_model_light_lightness_client_send_last_get()
wiced_result_t wiced_bt_mesh_model_light_lightness_client_send_last_get |
( |
wiced_bt_mesh_event_t * |
p_event | ) |
|
The application can call this function to send the Light Lightness Last Get client message to the server.
- Parameters
-
p_event | Mesh event with the information about the message that has been created by the app for unsolicited message. |
- Returns
- WICED_BT_SUCCESS if message has been queued for transmission.
◆ wiced_bt_mesh_model_light_lightness_client_send_default_get()
wiced_result_t wiced_bt_mesh_model_light_lightness_client_send_default_get |
( |
wiced_bt_mesh_event_t * |
p_event | ) |
|
The application can call this function to send the Light Lightness Default Get client message to the server.
- Parameters
-
p_event | Mesh event with the information about the message that has been created by the app for unsolicited message. |
- Returns
- WICED_BT_SUCCESS if message has been queued for transmission.
◆ wiced_bt_mesh_model_light_lightness_client_send_default_set()
The application can call this function to send Light Lightness Default Set client message to the server.
- Parameters
-
p_event | Mesh event with the information about the message that has been created by the app for unsolicited message. |
p_data | Pointer to the data to send |
- Returns
- WICED_BT_SUCCESS if message has been queued for transmission.
◆ wiced_bt_mesh_model_light_lightness_client_send_range_get()
wiced_result_t wiced_bt_mesh_model_light_lightness_client_send_range_get |
( |
wiced_bt_mesh_event_t * |
p_event | ) |
|
The application can call this function to send the Light Lightness Range Get client message to the server.
- Parameters
-
p_event | Mesh event with the information about the message that has been created by the app for unsolicited message. |
- Returns
- WICED_BT_SUCCESS if message has been queued for transmission.
◆ wiced_bt_mesh_model_light_lightness_client_send_range_set()
The application can call this function to send Light Lightness Default Set client message to the server.
- Parameters
-
p_event | Mesh event with the information about the message that has been created by the app for unsolicited message. |
p_data | Pointer to the data to send |
- Returns
- WICED_BT_SUCCESS if message has been queued for transmission.