How to land properly & disarm drone on pymavlink?

How to land properly & disarm drone on pymavlink?

This is not working

connection.mav.command_long_send(
        connection.target_system, connection.target_component, mavutil.mavlink.MAV_CMD_DO_SET_MODE, 0, 0, 216, 0, 0, 0, 0, 0)

Thanks

Try changing mode to RTL. This should land the vehicle and disarm the throttle.
Please see attached code that I work on.
change_mode.txt (5.1 KB)

Thanks but
I dont want the drone to return to launch.
I want the drone to land on the way point & disarm.

Did you tried this message?
https://mavlink.io/en/messages/common.html#MAV_CMD_NAV_LAND