22#ifndef __RELAY_CLIENT_MODEL_H__
23#define __RELAY_CLIENT_MODEL_H__
28#if CONFIG_RELAY_CLIENT_COUNT > 0
34#define RELAY_CLI_MODEL_SIG_CNT RELAY_CLI_SIG_MAX_ID
39#define RELAY_CLI_MODEL_VEN_CNT 0
Common application definitions and includes for BLE Mesh Node.
struct dev_struct dev_struct_t
Structure representing the device composition and elements.
meshx_err_t
MeshX Error Codes.
Header file for the On/Off client model in BLE mesh.
@ RELAY_CLI_SIG_ONOFF_MODEL_ID
struct relay_client_element_ctrl relay_client_element_ctrl_t
meshx_err_t meshx_relay_el_get_state(uint16_t el_id)
Retrieves the current state of the relay element.
meshx_err_t create_relay_client_elements(dev_struct_t *pdev, uint16_t element_cnt)
Create Dynamic Relay Model Elements.
struct meshx_relay_client_model_ctx meshx_relay_client_model_ctx_t
Structure to hold the context of the relay client.
struct meshx_gen_on_off_cli_msg meshx_gen_on_off_cli_msg_t
Structure to hold the relay client message.
#define RELAY_CLI_MODEL_SIG_CNT
Number of SIG models in a relay model element.
meshx_err_t meshx_relay_el_set_state(uint16_t el_id, bool ack)
Set the On/Off state for a specific element in the BLE mesh network.
struct relay_client_element relay_client_elements_t
Structure to hold the context and configuration for the relay client element.
Structure to hold the relay client message.
Structure to hold the context of the relay client.
meshx_on_off_cli_state_t prev_state
meshx_on_off_cli_state_t state
relay_client_elements_t * el_list
Structure to hold the context and configuration for the relay client element.
meshx_onoff_client_model_t * onoff_cli_model
MESHX_MODEL relay_cli_sig_model_list[RELAY_CLI_MODEL_SIG_CNT]
size_t element_model_init
meshx_relay_client_model_ctx_t * cli_ctx