Can multiple generic on/off clients be used at the same time in the mesh example?

In the mesh example, when multiple generic on/off clients are registered, only the handle of the last registered generic on/off client is operated.

-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------

tbrx23w_mesh_client -> mesh_model.c -> mesh_model_register

 

retval = MS_generic_onoff_client_init
(
gs_element_handle,
&gs_onoff_client_model_handle,
mesh_model_onoff_client_cb
);
CONSOLE_OUT("[GENERIC_ONOFF_CL] MS_generic_onoff_client_init() status=0x%04X, handle=0x%02X\n", retval, gs_onoff_client_model_handle);

retval = MS_generic_onoff_client_init
(
gs_element_handle_2,
&gs_onoff_client_model_handle_2,
mesh_model_onoff_client_cb
);
CONSOLE_OUT("[GENERIC_ONOFF_CL] MS_generic_onoff_client_init2() status=0x%04X, handle=0x%02X\n", retval, gs_onoff_client_model_handle_2);

-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------

If I register two handles in the source code, only the second handle registered will operate. (gs_element_handle_2)

Is it possible to specify the handle of the generic on/off client that I want?

Parents Reply Children
No Data