MeshX 0.4
This repository provides an implementation for Bluetooth Low Energy (BLE) Mesh network nodes. The project allows you to create BLE mesh nodes that can communicate with each other, enabling the development of smart home solutions or other IoT-based applications.
Loading...
Searching...
No Matches
meshx_ble_mesh_gen_cli.h
Go to the documentation of this file.
1/**
2 * Copyright (c) 2024 - 2025 MeshX
3 *
4 * @file meshx_ble_mesh_gen_cli.h
5 * @brief Header file for BLE Mesh Generic Client functionality in the MeshX framework.
6 * This file contains declarations and includes required for implementing
7 * BLE Mesh Generic Client operations.
8 *
9 * @author Pranjal Chanda
10 */
11
12#ifndef __MESHX_BLE_MESH_GEN_CLI_H__
13#define __MESHX_BLE_MESH_GEN_CLI_H__
14
16#include "meshx_control_task.h"
17
30
31/** Parameters of Generic OnOff Set. */
32typedef struct {
33 bool op_en; /*!< Indicate if optional parameters are included */
34 uint8_t onoff; /*!< Target value of Generic OnOff state */
35 uint8_t tid; /*!< Transaction ID */
36 uint8_t trans_time; /*!< Time to complete state transition (optional) */
37 uint8_t delay; /*!< Indicate message execution delay (C.1) */
39
40/** Parameters of Generic Level Set. */
41typedef struct {
42 bool op_en; /*!< Indicate if optional parameters are included */
43 int16_t level; /*!< Target value of Generic Level state */
44 uint8_t tid; /*!< Transaction ID */
45 uint8_t trans_time; /*!< Time to complete state transition (optional) */
46 uint8_t delay; /*!< Indicate message execution delay (C.1) */
48
49/** Parameters of Generic Delta Set. */
50typedef struct {
51 bool op_en; /*!< Indicate if optional parameters are included */
52 int32_t level; /*!< Delta change of Generic Level state */
53 uint8_t tid; /*!< Transaction ID */
54 uint8_t trans_time; /*!< Time to complete state transition (optional) */
55 uint8_t delay; /*!< Indicate message execution delay (C.1) */
57
58/** Parameters of Generic Move Set. */
59typedef struct {
60 bool op_en; /*!< Indicate if optional parameters are included */
61 int16_t delta_level; /*!< Delta Level step to calculate Move speed for Generic Level state */
62 uint8_t tid; /*!< Transaction ID */
63 uint8_t trans_time; /*!< Time to complete state transition (optional) */
64 uint8_t delay; /*!< Indicate message execution delay (C.1) */
66
67/** Parameter of Generic Default Transition Time Set. */
68typedef struct {
69 uint8_t trans_time; /*!< The value of the Generic Default Transition Time state */
71
72/** Parameter of Generic OnPowerUp Set. */
73typedef struct {
74 uint8_t onpowerup; /*!< The value of the Generic OnPowerUp state */
76
77/** Parameters of Generic Power Level Set. */
78typedef struct {
79 bool op_en; /*!< Indicate if optional parameters are included */
80 uint16_t power; /*!< Target value of Generic Power Actual state */
81 uint8_t tid; /*!< Transaction ID */
82 uint8_t trans_time; /*!< Time to complete state transition (optional) */
83 uint8_t delay; /*!< Indicate message execution delay (C.1) */
85
86/** Parameter of Generic Power Default Set. */
87typedef struct {
88 uint16_t power; /*!< The value of the Generic Power Default state */
90
91/** Parameters of Generic Power Range Set. */
92typedef struct {
93 uint16_t range_min; /*!< Value of Range Min field of Generic Power Range state */
94 uint16_t range_max; /*!< Value of Range Max field of Generic Power Range state */
96
97/** Parameters of Generic Location Global Set. */
98typedef struct {
99 int32_t global_latitude; /*!< Global Coordinates (Latitude) */
100 int32_t global_longitude; /*!< Global Coordinates (Longitude) */
101 int16_t global_altitude; /*!< Global Altitude */
103
104/** Parameters of Generic Location Local Set. */
105typedef struct {
106 int16_t local_north; /*!< Local Coordinates (North) */
107 int16_t local_east; /*!< Local Coordinates (East) */
108 int16_t local_altitude; /*!< Local Altitude */
109 uint8_t floor_number; /*!< Floor Number */
110 uint16_t uncertainty; /*!< Uncertainty */
112
113/**
114 * @brief Generic Client Model set message union
115 */
116typedef union {
117 meshx_gen_onoff_set_t onoff_set; /*!< For MESHX_MODEL_OP_GEN_ONOFF_SET & MESHX_MODEL_OP_GEN_ONOFF_SET_UNACK */
118 meshx_gen_level_set_t level_set; /*!< For MESHX_MODEL_OP_GEN_LEVEL_SET & MESHX_MODEL_OP_GEN_LEVEL_SET_UNACK */
119 meshx_gen_delta_set_t delta_set; /*!< For MESHX_MODEL_OP_GEN_DELTA_SET & MESHX_MODEL_OP_GEN_DELTA_SET_UNACK */
120 meshx_gen_move_set_t move_set; /*!< For MESHX_MODEL_OP_GEN_MOVE_SET & MESHX_MODEL_OP_GEN_MOVE_SET_UNACK */
121 meshx_gen_def_trans_time_set_t def_trans_time_set; /*!< For MESHX_MODEL_OP_GEN_DEF_TRANS_TIME_SET & MESHX_MODEL_OP_GEN_DEF_TRANS_TIME_SET_UNACK */
122 meshx_gen_onpowerup_set_t power_set; /*!< For MESHX_MODEL_OP_GEN_ONPOWERUP_SET & MESHX_MODEL_OP_GEN_ONPOWERUP_SET_UNACK */
123 meshx_gen_power_level_set_t power_level_set; /*!< For MESHX_MODEL_OP_GEN_POWER_LEVEL_SET & MESHX_MODEL_OP_GEN_POWER_LEVEL_SET_UNACK */
124 meshx_gen_power_default_set_t power_default_set; /*!< For MESHX_MODEL_OP_GEN_POWER_DEFAULT_SET & MESHX_MODEL_OP_GEN_POWER_DEFAULT_SET_UNACK */
125 meshx_gen_power_range_set_t power_range_set; /*!< For MESHX_MODEL_OP_GEN_POWER_RANGE_SET & MESHX_MODEL_OP_GEN_POWER_RANGE_SET_UNACK */
126 meshx_gen_loc_global_set_t loc_global_set; /*!< For MESHX_MODEL_OP_GEN_LOC_GLOBAL_SET & MESHX_MODEL_OP_GEN_LOC_GLOBAL_SET_UNACK */
127 meshx_gen_loc_local_set_t loc_local_set; /*!< For MESHX_MODEL_OP_GEN_LOC_LOCAL_SET & MESHX_MODEL_OP_GEN_LOC_LOCAL_SET_UNACK */
129
130/** Parameters of Generic OnOff Status. */
131typedef struct {
132 bool op_en; /*!< Indicate if optional parameters are included */
133 uint8_t present_onoff; /*!< Current value of Generic OnOff state */
134 uint8_t target_onoff; /*!< Target value of Generic OnOff state (optional) */
135 uint8_t remain_time; /*!< Time to complete state transition (C.1) */
137
138/** Parameters of Generic Level Status. */
139typedef struct {
140 bool op_en; /*!< Indicate if optional parameters are included */
141 int16_t present_level; /*!< Current value of Generic Level state */
142 int16_t target_level; /*!< Target value of the Generic Level state (optional) */
143 uint8_t remain_time; /*!< Time to complete state transition (C.1) */
145
146/** Parameter of Generic Default Transition Time Status. */
147typedef struct {
148 uint8_t trans_time; /*!< The value of the Generic Default Transition Time state */
150
151/** Parameter of Generic OnPowerUp Status. */
152typedef struct {
153 uint8_t onpowerup; /*!< The value of the Generic OnPowerUp state */
155
156/** Parameters of Generic Power Level Status. */
157typedef struct {
158 bool op_en; /*!< Indicate if optional parameters are included */
159 uint16_t present_power; /*!< Current value of Generic Power Actual state */
160 uint16_t target_power; /*!< Target value of Generic Power Actual state (optional) */
161 uint8_t remain_time; /*!< Time to complete state transition (C.1) */
163
164/** Parameter of Generic Power Last Status. */
165typedef struct {
166 uint16_t power; /*!< The value of the Generic Power Last state */
168
169/** Parameter of Generic Power Default Status. */
170typedef struct {
171 uint16_t power; /*!< The value of the Generic Default Last state */
173
174/** Parameters of Generic Power Range Status. */
175typedef struct {
176 uint8_t status_code; /*!< Status Code for the request message */
177 uint16_t range_min; /*!< Value of Range Min field of Generic Power Range state */
178 uint16_t range_max; /*!< Value of Range Max field of Generic Power Range state */
180
181/** Parameters of Generic Battery Status. */
182typedef struct {
183 uint32_t battery_level : 8; /*!< Value of Generic Battery Level state */
184 uint32_t time_to_discharge : 24; /*!< Value of Generic Battery Time to Discharge state */
185 uint32_t time_to_charge : 24; /*!< Value of Generic Battery Time to Charge state */
186 uint32_t flags : 8; /*!< Value of Generic Battery Flags state */
188
189/** Parameters of Generic Location Global Status. */
190typedef struct {
191 int32_t global_latitude; /*!< Global Coordinates (Latitude) */
192 int32_t global_longitude; /*!< Global Coordinates (Longitude) */
193 int16_t global_altitude; /*!< Global Altitude */
195
196/** Parameters of Generic Location Local Status. */
197typedef struct {
198 int16_t local_north; /*!< Local Coordinates (North) */
199 int16_t local_east; /*!< Local Coordinates (East) */
200 int16_t local_altitude; /*!< Local Altitude */
201 uint8_t floor_number; /*!< Floor Number */
202 uint16_t uncertainty; /*!< Uncertainty */
204
205/** Parameter of Generic User Properties Status. */
206typedef struct {
207 struct net_buf_simple *property_ids; /*!< Buffer contains a sequence of N User Property IDs */
209
210/** Parameters of Generic User Property Status. */
211typedef struct {
212 bool op_en; /*!< Indicate if optional parameters are included */
213 uint16_t property_id; /*!< Property ID identifying a Generic User Property */
214 uint8_t user_access; /*!< Enumeration indicating user access (optional) */
215 struct net_buf_simple *property_value; /*!< Raw value for the User Property (C.1) */
217
218/** Parameter of Generic Admin Properties Status. */
219typedef struct {
220 struct net_buf_simple *property_ids; /*!< Buffer contains a sequence of N Admin Property IDs */
222
223/** Parameters of Generic Admin Property Status. */
224typedef struct {
225 bool op_en; /*!< Indicate if optional parameters are included */
226 uint16_t property_id; /*!< Property ID identifying a Generic Admin Property */
227 uint8_t user_access; /*!< Enumeration indicating user access (optional) */
228 struct net_buf_simple *property_value; /*!< Raw value for the Admin Property (C.1) */
230
231/** Parameter of Generic Manufacturer Properties Status. */
232typedef struct {
233 struct net_buf_simple *property_ids; /*!< Buffer contains a sequence of N Manufacturer Property IDs */
235
236/** Parameters of Generic Manufacturer Property Status. */
237typedef struct {
238 bool op_en; /*!< Indicate if optional parameters are included */
239 uint16_t property_id; /*!< Property ID identifying a Generic Manufacturer Property */
240 uint8_t user_access; /*!< Enumeration indicating user access (optional) */
241 struct net_buf_simple *property_value; /*!< Raw value for the Manufacturer Property (C.1) */
243
244/** Parameter of Generic Client Properties Status. */
245typedef struct {
246 struct net_buf_simple *property_ids; /*!< Buffer contains a sequence of N Client Property IDs */
248
249/**
250 * @brief Generic Client Model received message union
251 */
252typedef union {
253 meshx_gen_onoff_status_cb_t onoff_status; /*!< For MESHX_MODEL_OP_GEN_ONOFF_STATUS */
254 meshx_gen_level_status_cb_t level_status; /*!< For MESHX_MODEL_OP_GEN_LEVEL_STATUS */
255 meshx_gen_def_trans_time_status_cb_t def_trans_time_status; /*!< For MESHX_MODEL_OP_GEN_DEF_TRANS_TIME_STATUS */
256 meshx_gen_onpowerup_status_cb_t onpowerup_status; /*!< For MESHX_MODEL_OP_GEN_ONPOWERUP_STATUS */
257 meshx_gen_power_level_status_cb_t power_level_status; /*!< For MESHX_MODEL_OP_GEN_POWER_LEVEL_STATUS */
258 meshx_gen_power_last_status_cb_t power_last_status; /*!< For MESHX_MODEL_OP_GEN_POWER_LAST_STATUS */
259 meshx_gen_power_default_status_cb_t power_default_status; /*!< For MESHX_MODEL_OP_GEN_POWER_DEFAULT_STATUS */
260 meshx_gen_power_range_status_cb_t power_range_status; /*!< For MESHX_MODEL_OP_GEN_POWER_RANGE_STATUS */
261 meshx_gen_battery_status_cb_t battery_status; /*!< For MESHX_MODEL_OP_GEN_BATTERY_STATUS */
262 meshx_gen_loc_global_status_cb_t location_global_status; /*!< For MESHX_MODEL_OP_GEN_LOC_GLOBAL_STATUS */
263 meshx_gen_loc_local_status_cb_t location_local_status; /*!< MESHX_MODEL_OP_GEN_LOC_LOCAL_STATUS */
264 meshx_gen_user_properties_status_cb_t user_properties_status; /*!< MESHX_MODEL_OP_GEN_USER_PROPERTIES_STATUS */
265 meshx_gen_user_property_status_cb_t user_property_status; /*!< MESHX_MODEL_OP_GEN_USER_PROPERTY_STATUS */
266 meshx_gen_admin_properties_status_cb_t admin_properties_status; /*!< MESHX_MODEL_OP_GEN_ADMIN_PROPERTIES_STATUS */
267 meshx_gen_admin_property_status_cb_t admin_property_status; /*!< MESHX_MODEL_OP_GEN_ADMIN_PROPERTY_STATUS */
268 meshx_gen_manufacturer_properties_status_cb_t manufacturer_properties_status; /*!< MESHX_MODEL_OP_GEN_MANUFACTURER_PROPERTIES_STATUS */
269 meshx_gen_manufacturer_property_status_cb_t manufacturer_property_status; /*!< MESHX_MODEL_OP_GEN_MANUFACTURER_PROPERTY_STATUS */
270 meshx_gen_client_properties_status_cb_t client_properties_status; /*!< MESHX_MODEL_OP_GEN_CLIENT_PROPERTIES_STATUS */
272
273/**
274 * @brief Callback parameters for Generic Client Model events.
275 * This structure is used to pass information about the received
276 * messages and their context to the application.
277 * It includes the context, model pointer, event type, and status values.
278 * The status values are encapsulated in a union to handle different
279 * types of status messages that the Generic Client Model can receive.
280 * Each status type corresponds to a specific operation code (opcode) defined in the BLE Mesh
281 * specification, allowing the application to handle them appropriately.
282 */
284{
285 uint8_t err_code; /*!< Error code */
286 meshx_ctx_t ctx; /**< Context of the received messages */
287 meshx_model_t model; /**< Pointer to Generic Client Models */
288 meshx_gen_cli_evt_t evt; /**< Event type of the received message */
289 meshx_gen_client_status_cb_t status; /**< Value of the received Generic Messages */
291
292/**
293 * @brief Generic Client Model send parameters.
294 */
296{
297 meshx_ptr_t model; /**< Model context associated with the message. */
298 uint16_t opcode; /**< Opcode associated with the message. */
299 uint16_t addr; /**< Destination address associated with the message. */
300 uint16_t net_idx; /**< Network index associated with the message. */
301 uint16_t app_idx; /**< Application key index associated with the message. */
302 meshx_gen_cli_set_t *state; /**< State parameters associated with the message. */
304
306
307/**
308 * @brief Sends a Generic Client message over BLE Mesh.
309 */
311
312/**
313 * @brief Creates a Generic OnOff client model and its publication context.
314 *
315 * This function initializes the Generic OnOff client model, its publication
316 * context, and allocates memory for the client instance. It checks for
317 * invalid arguments and handles memory allocation failures.
318 *
319 * @param[out] p_model Pointer to the model structure to be created.
320 * @param[out] p_pub Pointer to the publication context to be created.
321 * @param[out] p_onoff_cli Pointer to the OnOff client instance to be allocated.
322 *
323 * @return
324 * - MESHX_SUCCESS: Successfully created the model and publication context.
325 * - MESHX_INVALID_ARG: One or more arguments are invalid.
326 * - MESHX_NO_MEM: Memory allocation failed.
327 */
329
330/**
331 * @brief Deletes the Generic OnOff Client model and its associated resources.
332 *
333 * This function frees the memory allocated for the Generic OnOff Client
334 * and sets the pointer to NULL. It also deletes the model publication
335 * resources associated with the client.
336 *
337 * @param[in,out] p_pub Pointer to the publication structure to be deleted.
338 * @param[in,out] p_cli Pointer to the OnOff Client structure to be freed.
339 *
340 * @return
341 * - MESHX_SUCCESS: Model and publication deleted successfully.
342 * - MESHX_FAIL: Failed to delete the model or publication.
343 */
345
346/**
347 * @brief Initialize the meshxuction generic client.
348 *
349 * This function sets up the necessary configurations and initializes the
350 * meshxuction generic client for the BLE mesh node.
351 *
352 * @return
353 * - MESHX_SUCCESS: Success
354 * - MESHX_FAIL: Failed to initialize the client
355 */
357
358/**
359 * @brief Sends a Generic Client message over BLE Mesh.
360 *
361 * This function sends a message from a Generic Client model to a specified address
362 * within the BLE Mesh network, using the provided opcode and parameters.
363 *
364 * @param[in] p_model Pointer to the Generic Client model instance.
365 * @param[in] p_set Pointer to the structure containing the message parameters to set.
366 * @param[in] opcode Operation code specifying the type of message to send.
367 * @param[in] addr Destination address within the BLE Mesh network.
368 * @param[in] net_idx Network index identifying the subnet to use.
369 * @param[in] app_idx Application key index to encrypt the message.
370 * @param[in] is_get_opcode Flag indicating if the opcode is a GET request.
371 *
372 * @return meshx_err_t Result of the operation. Returns MESHX_OK on success or an error code on failure.
373 */
375 meshx_ptr_t p_model, meshx_gen_cli_set_t *p_set,
376 uint16_t opcode, uint16_t addr,
377 uint16_t net_idx, uint16_t app_idx,
378 bool is_get_opcode
379);
380#endif /* __MESHX_BLE_MESH_GEN_CLI_H__ */
Common BLE Mesh interface definitions and utility functions.
struct meshx_model meshx_model_t
struct meshx_ctx meshx_ctx_t
Structure to hold context information for BLE Mesh operations.
void * meshx_ptr_t
Definition meshx_ble_mesh_cmn_def.h:636
#define MESHX_BIT(nr)
Definition meshx_ble_mesh_cmn_def.h:22
struct meshx_gen_client_send_params meshx_gen_client_send_params_t
Generic Client Model send parameters.
struct meshx_gen_cli_cb_param meshx_gen_cli_cb_param_t
Callback parameters for Generic Client Model events. This structure is used to pass information about...
control_task_msg_handle_t meshx_gen_client_cb_t
Definition meshx_ble_mesh_gen_cli.h:305
meshx_err_t meshx_gen_cli_send_msg(meshx_gen_client_send_params_t *params)
Sends a Generic Client message over BLE Mesh.
Definition meshx_model_gen_cli.cpp:8
meshx_gen_cli_evt_t
Definition meshx_ble_mesh_gen_cli.h:19
@ MESHX_GEN_CLI_EVT_ALL
Definition meshx_ble_mesh_gen_cli.h:24
@ MESHX_GEN_CLI_EVT_GET
Definition meshx_ble_mesh_gen_cli.h:20
@ MESHX_GEN_CLI_EVT_SET
Definition meshx_ble_mesh_gen_cli.h:21
@ MESHX_GEN_CLI_PUBLISH
Definition meshx_ble_mesh_gen_cli.h:22
@ MESHX_GEN_CLI_TIMEOUT
Definition meshx_ble_mesh_gen_cli.h:23
meshx_err_t meshx_plat_gen_cli_delete(meshx_ptr_t *p_pub, meshx_ptr_t *p_cli)
Deletes the Generic OnOff Client model and its associated resources.
meshx_err_t meshx_plat_gen_cli_send_msg(meshx_ptr_t p_model, meshx_gen_cli_set_t *p_set, uint16_t opcode, uint16_t addr, uint16_t net_idx, uint16_t app_idx, bool is_get_opcode)
Sends a Generic Client message over BLE Mesh.
meshx_err_t meshx_plat_on_off_gen_cli_create(meshx_ptr_t p_model, meshx_ptr_t *p_pub, meshx_ptr_t *p_onoff_cli)
Creates a Generic OnOff client model and its publication context.
meshx_err_t meshx_plat_gen_cli_init(void)
Initialize the meshxuction generic client.
Header file for the control task in the BLE mesh node application.
meshx_err_t(* control_task_msg_handle_t)(dev_struct_t *pdev, control_task_msg_evt_t evt, void *params)
Function pointer type for control task message handler.
Definition meshx_control_task.h:188
meshx_err_t
MeshX Error Codes.
Definition meshx_err.h:43
Definition meshx_ble_mesh_gen_cli.h:219
struct net_buf_simple * property_ids
Definition meshx_ble_mesh_gen_cli.h:220
Definition meshx_ble_mesh_gen_cli.h:224
struct net_buf_simple * property_value
Definition meshx_ble_mesh_gen_cli.h:228
uint8_t user_access
Definition meshx_ble_mesh_gen_cli.h:227
uint16_t property_id
Definition meshx_ble_mesh_gen_cli.h:226
bool op_en
Definition meshx_ble_mesh_gen_cli.h:225
Definition meshx_ble_mesh_gen_cli.h:182
uint32_t time_to_discharge
Definition meshx_ble_mesh_gen_cli.h:184
uint32_t time_to_charge
Definition meshx_ble_mesh_gen_cli.h:185
uint32_t battery_level
Definition meshx_ble_mesh_gen_cli.h:183
uint32_t flags
Definition meshx_ble_mesh_gen_cli.h:186
Callback parameters for Generic Client Model events. This structure is used to pass information about...
Definition meshx_ble_mesh_gen_cli.h:284
uint8_t err_code
Definition meshx_ble_mesh_gen_cli.h:285
meshx_gen_client_status_cb_t status
Definition meshx_ble_mesh_gen_cli.h:289
meshx_model_t model
Definition meshx_ble_mesh_gen_cli.h:287
meshx_ctx_t ctx
Definition meshx_ble_mesh_gen_cli.h:286
meshx_gen_cli_evt_t evt
Definition meshx_ble_mesh_gen_cli.h:288
Definition meshx_ble_mesh_gen_cli.h:245
struct net_buf_simple * property_ids
Definition meshx_ble_mesh_gen_cli.h:246
Generic Client Model send parameters.
Definition meshx_ble_mesh_gen_cli.h:296
uint16_t addr
Definition meshx_ble_mesh_gen_cli.h:299
uint16_t net_idx
Definition meshx_ble_mesh_gen_cli.h:300
meshx_gen_cli_set_t * state
Definition meshx_ble_mesh_gen_cli.h:302
meshx_ptr_t model
Definition meshx_ble_mesh_gen_cli.h:297
uint16_t opcode
Definition meshx_ble_mesh_gen_cli.h:298
uint16_t app_idx
Definition meshx_ble_mesh_gen_cli.h:301
Definition meshx_ble_mesh_gen_cli.h:68
uint8_t trans_time
Definition meshx_ble_mesh_gen_cli.h:69
Definition meshx_ble_mesh_gen_cli.h:147
uint8_t trans_time
Definition meshx_ble_mesh_gen_cli.h:148
Definition meshx_ble_mesh_gen_cli.h:50
uint8_t delay
Definition meshx_ble_mesh_gen_cli.h:55
bool op_en
Definition meshx_ble_mesh_gen_cli.h:51
int32_t level
Definition meshx_ble_mesh_gen_cli.h:52
uint8_t trans_time
Definition meshx_ble_mesh_gen_cli.h:54
uint8_t tid
Definition meshx_ble_mesh_gen_cli.h:53
Definition meshx_ble_mesh_gen_cli.h:41
uint8_t delay
Definition meshx_ble_mesh_gen_cli.h:46
int16_t level
Definition meshx_ble_mesh_gen_cli.h:43
uint8_t trans_time
Definition meshx_ble_mesh_gen_cli.h:45
uint8_t tid
Definition meshx_ble_mesh_gen_cli.h:44
bool op_en
Definition meshx_ble_mesh_gen_cli.h:42
Definition meshx_ble_mesh_gen_cli.h:139
int16_t target_level
Definition meshx_ble_mesh_gen_cli.h:142
bool op_en
Definition meshx_ble_mesh_gen_cli.h:140
uint8_t remain_time
Definition meshx_ble_mesh_gen_cli.h:143
int16_t present_level
Definition meshx_ble_mesh_gen_cli.h:141
Definition meshx_ble_mesh_gen_cli.h:98
int32_t global_longitude
Definition meshx_ble_mesh_gen_cli.h:100
int16_t global_altitude
Definition meshx_ble_mesh_gen_cli.h:101
int32_t global_latitude
Definition meshx_ble_mesh_gen_cli.h:99
Definition meshx_ble_mesh_gen_cli.h:190
int16_t global_altitude
Definition meshx_ble_mesh_gen_cli.h:193
int32_t global_latitude
Definition meshx_ble_mesh_gen_cli.h:191
int32_t global_longitude
Definition meshx_ble_mesh_gen_cli.h:192
Definition meshx_ble_mesh_gen_cli.h:105
int16_t local_altitude
Definition meshx_ble_mesh_gen_cli.h:108
int16_t local_north
Definition meshx_ble_mesh_gen_cli.h:106
uint16_t uncertainty
Definition meshx_ble_mesh_gen_cli.h:110
int16_t local_east
Definition meshx_ble_mesh_gen_cli.h:107
uint8_t floor_number
Definition meshx_ble_mesh_gen_cli.h:109
Definition meshx_ble_mesh_gen_cli.h:197
int16_t local_altitude
Definition meshx_ble_mesh_gen_cli.h:200
int16_t local_north
Definition meshx_ble_mesh_gen_cli.h:198
uint16_t uncertainty
Definition meshx_ble_mesh_gen_cli.h:202
int16_t local_east
Definition meshx_ble_mesh_gen_cli.h:199
uint8_t floor_number
Definition meshx_ble_mesh_gen_cli.h:201
Definition meshx_ble_mesh_gen_cli.h:232
struct net_buf_simple * property_ids
Definition meshx_ble_mesh_gen_cli.h:233
Definition meshx_ble_mesh_gen_cli.h:237
bool op_en
Definition meshx_ble_mesh_gen_cli.h:238
uint8_t user_access
Definition meshx_ble_mesh_gen_cli.h:240
struct net_buf_simple * property_value
Definition meshx_ble_mesh_gen_cli.h:241
uint16_t property_id
Definition meshx_ble_mesh_gen_cli.h:239
Definition meshx_ble_mesh_gen_cli.h:59
uint8_t trans_time
Definition meshx_ble_mesh_gen_cli.h:63
int16_t delta_level
Definition meshx_ble_mesh_gen_cli.h:61
bool op_en
Definition meshx_ble_mesh_gen_cli.h:60
uint8_t tid
Definition meshx_ble_mesh_gen_cli.h:62
uint8_t delay
Definition meshx_ble_mesh_gen_cli.h:64
Definition meshx_ble_mesh_gen_cli.h:32
uint8_t delay
Definition meshx_ble_mesh_gen_cli.h:37
uint8_t tid
Definition meshx_ble_mesh_gen_cli.h:35
bool op_en
Definition meshx_ble_mesh_gen_cli.h:33
uint8_t onoff
Definition meshx_ble_mesh_gen_cli.h:34
uint8_t trans_time
Definition meshx_ble_mesh_gen_cli.h:36
Definition meshx_ble_mesh_gen_cli.h:131
uint8_t remain_time
Definition meshx_ble_mesh_gen_cli.h:135
uint8_t present_onoff
Definition meshx_ble_mesh_gen_cli.h:133
uint8_t target_onoff
Definition meshx_ble_mesh_gen_cli.h:134
bool op_en
Definition meshx_ble_mesh_gen_cli.h:132
Definition meshx_ble_mesh_gen_cli.h:73
uint8_t onpowerup
Definition meshx_ble_mesh_gen_cli.h:74
Definition meshx_ble_mesh_gen_cli.h:152
uint8_t onpowerup
Definition meshx_ble_mesh_gen_cli.h:153
Definition meshx_ble_mesh_gen_cli.h:87
uint16_t power
Definition meshx_ble_mesh_gen_cli.h:88
Definition meshx_ble_mesh_gen_cli.h:170
uint16_t power
Definition meshx_ble_mesh_gen_cli.h:171
Definition meshx_ble_mesh_gen_cli.h:165
uint16_t power
Definition meshx_ble_mesh_gen_cli.h:166
Definition meshx_ble_mesh_gen_cli.h:78
uint16_t power
Definition meshx_ble_mesh_gen_cli.h:80
bool op_en
Definition meshx_ble_mesh_gen_cli.h:79
uint8_t tid
Definition meshx_ble_mesh_gen_cli.h:81
uint8_t trans_time
Definition meshx_ble_mesh_gen_cli.h:82
uint8_t delay
Definition meshx_ble_mesh_gen_cli.h:83
Definition meshx_ble_mesh_gen_cli.h:157
uint16_t target_power
Definition meshx_ble_mesh_gen_cli.h:160
uint16_t present_power
Definition meshx_ble_mesh_gen_cli.h:159
uint8_t remain_time
Definition meshx_ble_mesh_gen_cli.h:161
bool op_en
Definition meshx_ble_mesh_gen_cli.h:158
Definition meshx_ble_mesh_gen_cli.h:92
uint16_t range_max
Definition meshx_ble_mesh_gen_cli.h:94
uint16_t range_min
Definition meshx_ble_mesh_gen_cli.h:93
Definition meshx_ble_mesh_gen_cli.h:175
uint16_t range_min
Definition meshx_ble_mesh_gen_cli.h:177
uint8_t status_code
Definition meshx_ble_mesh_gen_cli.h:176
uint16_t range_max
Definition meshx_ble_mesh_gen_cli.h:178
Definition meshx_ble_mesh_gen_cli.h:206
struct net_buf_simple * property_ids
Definition meshx_ble_mesh_gen_cli.h:207
Definition meshx_ble_mesh_gen_cli.h:211
uint16_t property_id
Definition meshx_ble_mesh_gen_cli.h:213
struct net_buf_simple * property_value
Definition meshx_ble_mesh_gen_cli.h:215
uint8_t user_access
Definition meshx_ble_mesh_gen_cli.h:214
bool op_en
Definition meshx_ble_mesh_gen_cli.h:212
Generic Client Model set message union.
Definition meshx_ble_mesh_gen_cli.h:116
meshx_gen_move_set_t move_set
Definition meshx_ble_mesh_gen_cli.h:120
meshx_gen_loc_global_set_t loc_global_set
Definition meshx_ble_mesh_gen_cli.h:126
meshx_gen_onpowerup_set_t power_set
Definition meshx_ble_mesh_gen_cli.h:122
meshx_gen_delta_set_t delta_set
Definition meshx_ble_mesh_gen_cli.h:119
meshx_gen_power_default_set_t power_default_set
Definition meshx_ble_mesh_gen_cli.h:124
meshx_gen_def_trans_time_set_t def_trans_time_set
Definition meshx_ble_mesh_gen_cli.h:121
meshx_gen_power_level_set_t power_level_set
Definition meshx_ble_mesh_gen_cli.h:123
meshx_gen_level_set_t level_set
Definition meshx_ble_mesh_gen_cli.h:118
meshx_gen_loc_local_set_t loc_local_set
Definition meshx_ble_mesh_gen_cli.h:127
meshx_gen_onoff_set_t onoff_set
Definition meshx_ble_mesh_gen_cli.h:117
meshx_gen_power_range_set_t power_range_set
Definition meshx_ble_mesh_gen_cli.h:125
Generic Client Model received message union.
Definition meshx_ble_mesh_gen_cli.h:252
meshx_gen_user_properties_status_cb_t user_properties_status
Definition meshx_ble_mesh_gen_cli.h:264
meshx_gen_loc_global_status_cb_t location_global_status
Definition meshx_ble_mesh_gen_cli.h:262
meshx_gen_power_level_status_cb_t power_level_status
Definition meshx_ble_mesh_gen_cli.h:257
meshx_gen_power_last_status_cb_t power_last_status
Definition meshx_ble_mesh_gen_cli.h:258
meshx_gen_client_properties_status_cb_t client_properties_status
Definition meshx_ble_mesh_gen_cli.h:270
meshx_gen_battery_status_cb_t battery_status
Definition meshx_ble_mesh_gen_cli.h:261
meshx_gen_def_trans_time_status_cb_t def_trans_time_status
Definition meshx_ble_mesh_gen_cli.h:255
meshx_gen_loc_local_status_cb_t location_local_status
Definition meshx_ble_mesh_gen_cli.h:263
meshx_gen_level_status_cb_t level_status
Definition meshx_ble_mesh_gen_cli.h:254
meshx_gen_onoff_status_cb_t onoff_status
Definition meshx_ble_mesh_gen_cli.h:253
meshx_gen_admin_properties_status_cb_t admin_properties_status
Definition meshx_ble_mesh_gen_cli.h:266
meshx_gen_manufacturer_properties_status_cb_t manufacturer_properties_status
Definition meshx_ble_mesh_gen_cli.h:268
meshx_gen_onpowerup_status_cb_t onpowerup_status
Definition meshx_ble_mesh_gen_cli.h:256
meshx_gen_user_property_status_cb_t user_property_status
Definition meshx_ble_mesh_gen_cli.h:265
meshx_gen_power_default_status_cb_t power_default_status
Definition meshx_ble_mesh_gen_cli.h:259
meshx_gen_manufacturer_property_status_cb_t manufacturer_property_status
Definition meshx_ble_mesh_gen_cli.h:269
meshx_gen_admin_property_status_cb_t admin_property_status
Definition meshx_ble_mesh_gen_cli.h:267
meshx_gen_power_range_status_cb_t power_range_status
Definition meshx_ble_mesh_gen_cli.h:260