A gateway is a hardware device that acts as a communication link between the Internet of Things devices in a building and the cloud or user equipment for visualising the information. It can be considered as a bridge between the devices that collects the information and the cloud or computer where the data are saved. The can provide offline services and real-time control of the devices.