This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

Get source address of publisher node in nrf mesh

I have used light_Switch example from nrf mesh sdk nrf5_SDK_for_Mesh_v4.2.0_src

I like to get the client source address in nrf_switch_server 

what should I need to modify to get client source address in below function

static void app_onoff_server_set_cb(const app_onoff_server_t * p_server, bool onoff){

........................

}

Thanks

Parents Reply
  • Hi Dhaval, 

    We don't have an example for that. But my understanding is that you need to add the source address to the p_app and also to the app_transition_t.

    Note that the app_onoff.c and app_transition.c are on application layer, so you have the full control of what you can do with them. It's not something that need to be qualified with the spec. So you can call a callback to the main application, or you can process what you need to do in generic_onoff_state_set_cb() also. 

Children
Related