diff --git a/drivers/driver_wifi.py b/drivers/driver_wifi.py index a0c53bb0..32d4af55 100644 --- a/drivers/driver_wifi.py +++ b/drivers/driver_wifi.py @@ -114,7 +114,7 @@ def ping(self, host=str): """ return wifi.radio.ping(self.resolve(host)) - def get(self, host: str): + def get(self, host: str, timeout: int = 6): """ HTTP Get """ @@ -122,7 +122,7 @@ def get(self, host: str): if not (host.startswith("http://") or host.startswith("https://")): host = "http://" + host - return self._session.get(host) + return self._session.get(host, timeout=timeout) else: return None