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?
Hi Thor,
I tried checking its documentation but can't find any guide on how to implement the application that you want. I'm not really sure if multiple generic ON/OFF clients can be used at the same time. If you still can't figure this out, I recommend submitting a ticket to Renesas Technical Support to ask for additional information.
JBRenesasRulz Forum Moderator
https://renesasrulz.com/https://academy.renesas.com/https://en-us.knowledgebase.renesas.com/
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, PupilPath Login only the handle of the last registered generic on/off client is operated.