Skip to content

Commit cab338a

Browse files
authored
fetch latest libs dynamically
1 parent b96e4b7 commit cab338a

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

platform.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,11 @@ def configure_default_packages(self, variables, targets):
8686
if "arduino" in frameworks:
8787
self.packages["framework-arduinoespressif32"]["optional"] = False
8888
self.packages["framework-arduinoespressif32-libs"]["optional"] = False
89+
# use latest espressif Arduino libs
90+
URL = "https://raw.githubusercontent.com/espressif/arduino-esp32/release/v3.0.x/package/package_esp32_index.template.json"
91+
packjdata = requests.get(URL).json()
92+
dyn_lib_url = packjdata['packages'][0]['tools'][0]['systems'][0]['url']
93+
self.packages["framework-arduinoespressif32-libs"]["version"] = dyn_lib_url
8994

9095
# packages for IDF and mixed Arduino+IDF projects
9196
if tl_flag and "espidf" in frameworks:

0 commit comments

Comments
 (0)