Mon, 09 Oct 2023 19:48:41 +0200
MicroPython Interface
- Changed the port of the internet probe host.
--- a/src/eric7/MicroPython/Devices/CircuitPythonDevices.py Mon Oct 09 17:40:36 2023 +0200 +++ b/src/eric7/MicroPython/Devices/CircuitPythonDevices.py Mon Oct 09 19:48:41 2023 +0200 @@ -1534,7 +1534,7 @@ if nic.ifconfig[0] != b'\x00\x00\x00\x00': sock = nic.get_socket() try: - nic.socket_connect(sock, nic.get_host_by_name('quad9.net'), 80) + nic.socket_connect(sock, nic.get_host_by_name('quad9.net'), 443) nic.socket_disconnect(sock) print(True) except:
--- a/src/eric7/MicroPython/Devices/EspDevices.py Mon Oct 09 17:40:36 2023 +0200 +++ b/src/eric7/MicroPython/Devices/EspDevices.py Mon Oct 09 19:48:41 2023 +0200 @@ -1015,7 +1015,7 @@ if wifi.isconnected(): s = socket.socket() try: - s.connect(socket.getaddrinfo('quad9.net', 80)[0][-1]) + s.connect(socket.getaddrinfo('quad9.net', 443)[0][-1]) s.close() print(True) except:
--- a/src/eric7/MicroPython/Devices/RP2040Devices.py Mon Oct 09 17:40:36 2023 +0200 +++ b/src/eric7/MicroPython/Devices/RP2040Devices.py Mon Oct 09 19:48:41 2023 +0200 @@ -970,7 +970,7 @@ if wifi.isconnected(): s = socket.socket() try: - s.connect(socket.getaddrinfo('quad9.net', 80)[0][-1]) + s.connect(socket.getaddrinfo('quad9.net', 443)[0][-1]) s.close() print(True) except: @@ -1889,7 +1889,7 @@ if nic.isconnected(): s = socket.socket() try: - s.connect(socket.getaddrinfo('quad9.net', 80)[0][-1]) + s.connect(socket.getaddrinfo('quad9.net', 443)[0][-1]) s.close() print(True) except: