From 6ebf2ea8acd3b04e1b22b79e848d99dcbd392646 Mon Sep 17 00:00:00 2001 From: tobias Date: Sun, 28 Apr 2024 18:14:12 +0200 Subject: [PATCH] Fixed wifi connection for newer versions of zeroconf --- pyparrot/networking/wifiConnection.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyparrot/networking/wifiConnection.py b/pyparrot/networking/wifiConnection.py index 0567894..9d6ef0f 100644 --- a/pyparrot/networking/wifiConnection.py +++ b/pyparrot/networking/wifiConnection.py @@ -315,7 +315,7 @@ def _handshake(self, num_retries): tcp_sock.connect(("192.168.99.3", 44444)) else: if (self.ip_address is None): - self.drone_ip = ipaddress.IPv4Address(self.connection_info.address).exploded + self.drone_ip = ipaddress.IPv4Address(self.connection_info.addresses[0]).exploded tcp_sock.connect((self.drone_ip, self.connection_info.port)) else: self.drone_ip = ipaddress.IPv4Address(self.ip_address).exploded