What is a gateway role?

Wireless devices are connected to gateway. Gateway gathers data from end nodes but it can…