Exported Functions

group Mesh_Access_Exported_Functions

Function prototypes for mesh access layer.

Functions

mesh_msg_send_cause_t access_cfg(mesh_msg_p pmesh_msg)

Configure the mesh message using default or publishing parameters.

Parameters:

pmesh_msg[in] Pointer to the mesh message structure. Default parameters will be applied unless modified by caller.

Return values:
  • MESH_MSG_SEND_CAUSE_SUCCESS – Configuration was successful.

  • Others – Error code if configuration failed. Check mesh_msg_send_cause_t for possible causes.

Returns:

Operation result.

mesh_msg_send_cause_t access_send(mesh_msg_p pmesh_msg)

Send the mesh message to the access layer.

Parameters:

pmesh_msg[in] Pointer to the mesh message structure to be sent.

Return values:
  • MESH_MSG_SEND_CAUSE_SUCCESS – Message was sent successfully.

  • Others – Error code if message sending failed. Check mesh_msg_send_cause_t for possible causes.

Returns:

Operation result.

void access_dispatch(mesh_msg_p pmesh_msg)

Dispatch the mesh message at the access layer.

Parameters:

pmesh_msg[in] Pointer to the mesh message structure to be dispatched.

void access_set_dispatch_preprocess(dispatch_preprocess_t process)

Set the access dispatch preprocess function.

Parameters:

process[in] Pointer to the preprocess function to be set.