Beware that this post is related to an SDK in maintenance mode
More Info: Consider nRF Connect SDK for new designs
This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

How to expand send data in light_switch_proxy_client instance

Hello everyone, I have successfully implemented the light Switch examples in the Mesh SDK. I sent the on_off data from the switch device to the light device. But what I need now is to send the battery level along with the on_off data of the posts in the generic_on_off_client model. How can I do that?

Using Development Kit: Nrf-52 DK

SDK Version: nRF5_SDK_15.0

Mesh Version: : nrf5_SDK_for_Mesh_v2.2.0

/** Mandatory parameters for the Generic OnOff Set message. */
typedef struct
{
    bool on_off;                                            /**< State to set */
    uint8_t tid;                                            /**< Transaction ID */

} generic_onoff_set_params_t;

Parents Reply Children
Related