Skip to content

Commit 985db25

Browse files
authored
release 3.3.0-rc1
1 parent 1cd758f commit 985db25

File tree

1 file changed

+0
-20
lines changed

1 file changed

+0
-20
lines changed

platform.py

Lines changed: 0 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,6 @@
1515
import fnmatch
1616
import os
1717
import json
18-
import requests
19-
import socket
2018
import subprocess
2119
import sys
2220
import shutil
@@ -33,7 +31,6 @@
3331
SUBPROCESS_TIMEOUT = 300
3432
DEFAULT_DEBUG_SPEED = "5000"
3533
DEFAULT_APP_OFFSET = "0x10000"
36-
ARDUINO_ESP32_PACKAGE_URL = "https://raw.githubusercontent.com/espressif/arduino-esp32/release/v3.3.x/package/package_esp32_index.template.json"
3734

3835
# MCUs that support ESP-builtin debug
3936
ESP_BUILTIN_DEBUG_MCUS = frozenset([
@@ -84,14 +81,6 @@
8481
# Configure logger
8582
logger = logging.getLogger(__name__)
8683

87-
def is_internet_available():
88-
"""Check if connected to Internet"""
89-
try:
90-
with socket.create_connection(("8.8.8.8", 53), timeout=3):
91-
return True
92-
except OSError:
93-
return False
94-
9584
def safe_file_operation(operation_func):
9685
"""Decorator for safe filesystem operations with error handling."""
9786
def wrapper(*args, **kwargs):
@@ -345,15 +334,6 @@ def _configure_arduino_framework(self, frameworks: List[str]) -> None:
345334
self.packages["framework-arduinoespressif32"]["optional"] = False
346335
self.packages["framework-arduinoespressif32-libs"]["optional"] = False
347336

348-
if is_internet_available():
349-
try:
350-
response = requests.get(ARDUINO_ESP32_PACKAGE_URL, timeout=30)
351-
response.raise_for_status()
352-
packjdata = response.json()
353-
dyn_lib_url = packjdata['packages'][0]['tools'][0]['systems'][0]['url']
354-
self.packages["framework-arduinoespressif32-libs"]["version"] = dyn_lib_url
355-
except (requests.RequestException, KeyError, IndexError) as e:
356-
logger.error(f"Failed to fetch Arduino framework library URL: {e}")
357337

358338
def _configure_espidf_framework(
359339
self, frameworks: List[str], variables: Dict, board_config: Dict, mcu: str

0 commit comments

Comments
 (0)