Skip to content

Commit ecbd68f

Browse files
authored
fetch Arduino libs dl URL from manifest json
1 parent 017ffd0 commit ecbd68f

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
@@ -37,6 +37,11 @@ def configure_default_packages(self, variables, targets):
3737
if "arduino" in frameworks:
3838
self.packages["framework-arduinoespressif32"]["optional"] = False
3939
self.packages["framework-arduinoespressif32-libs"]["optional"] = False
40+
# use latest espressif Arduino libs
41+
URL = "https://raw.githubusercontent.com/espressif/arduino-esp32/idf-release/v5.3/package/package_esp32_index.template.json"
42+
packjdata = requests.get(URL).json()
43+
dyn_lib_url = packjdata['packages'][0]['tools'][0]['systems'][0]['url']
44+
self.packages["framework-arduinoespressif32-libs"]["version"] = dyn_lib_url
4045

4146
if "buildfs" in targets:
4247
filesystem = variables.get("board_build.filesystem", "littlefs")

0 commit comments

Comments
 (0)