Internet of things for high-speed railways