code: def get_gateway_id(self):
          
          info = next(serial.tools.list_ports.grep(self.port), None)
          return info.serial_number if info is not None else None
docs: Return a unique id for the gateway.