Thermodynamics of a higher-order topological insulator