King Charles and Queen Camilla have sent a message to Princess Anne's husband after his health scare earlier this year.