What is the difference between wait_heartbeat and MAV_TYPE_GCS?

Can anyone explain the difference between the two?

wait_heartbeat()

mav.heartbeat_send(mavutil.mavlink.MAV_TYPE_GCS)