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

don't understand what the handle do

Hi
I sit with light demo and can not understand what the handle and p_args do
static void handle_status_cb(access_model_handle_t handle, const access_message_rx_t *p_message, void *p_args) 
 gateway_client_t *p_client = p_args;
  p_message->meta_data.src;

  NRF_MESH_ASSERT(p_client->status_cb != NULL);
  if (!is_valid_source(p_client, p_message)) 
  {
    return;
  }

  gateway_msg_status_t *p_status = (gateway_status_t *)p_message->p_data;
  
  ...
  }
can someone explain it to me
Related