Hi,
I'm using a modified version of the light_switch example to control a RGB led on Mesh SDK 2.0.1.
I already managed to control the led by using 3 variables for each color (red, green and blue). So, from the "SET" I'm done (except for the status_reply).
Now I want to be able to use the "GET" to know the actual value of the 3 variables on the server side.
I modified the reply_status function as follow:
Accordingly I modified the simple_on_off_msg_status_t struct in simple_on_off_common.h:
Now, my problem is that I couldn't figure out how to pass the 3 variable values when calling the reply_status function on the handle_get_cb, and also how the get_cb works...
Another question is how will I return the 3 values on the main.c when executing the on_off_server_get_cb function?
BR,
Paulo Zacarias