added alternative to set wifi params via env variables

This commit is contained in:
Hpsaturn
2024-09-23 21:47:40 +02:00
parent 35d38d2526
commit fae86efeec
3 changed files with 13 additions and 8 deletions
+10 -5
View File
@@ -7,6 +7,11 @@
;
; Please visit documentation for the other options and examples
; https://docs.platformio.org/page/projectconf.html
[wifi]
ssid = ${sysenv.PIO_WIFI_SSID}
password = ${sysenv.PIO_WIFI_PASSWORD}
[platformio]
; default_envs = T-Keyboard
; src_dir = examples/Keyboard_ESP32C3
@@ -44,14 +49,14 @@ framework = arduino
upload_speed = 921600
monitor_speed = 115200
build_flags =
-DBOARD_HAS_PSRAM
-DBOARD_HAS_PSRAM=1
-DCORE_DEBUG_LEVEL=5
; Enable UARDUINO_ USB_ CDC_ ON_ BOOT will start printing and wait for terminal access during startup
-DARDUINO_USB_CDC_ON_BOOT=1
'-DWIFI_SSID="${wifi.ssid}"'
'-DWIFI_PASS="${wifi.password}"'
; Enable UARDUINO_USB_CDC_ON_BOOT will turn off printing and will not block when using the battery
; -UARDUINO_USB_CDC_ON_BOOT
-DDISABLE_ALL_LIBRARY_WARNINGS
; -DDISABLE_ALL_LIBRARY_WARNINGS