pub fn write_control_command_response_on_msg_buffer(
    ctx: &mut CommandContext,
    result: ResultCode,
    control_type: CommandType
)