bt_mesh_msg_ack_ctx_prepare() function
Prepare an acknowledged message context for the incoming message to wait. This function sets the opcode, remote address of the incoming message and stores the user data. Use this function before calling bt_mesh_msg_ack_ctx_wait.
Arguments
ack
Acknowledged message context to prepare.
dst
Destination address of the message.
user_data
User data for the acknowledged message context.
Return value
0 on success, or (negative) error code on failure.