; PlatformIO Project Configuration File
;
;   Build options: build flags, source filter
;   Upload options: custom upload port, speed and extra flags
;   Library options: dependencies, extra library storages
;   Advanced options: extra scripting
;
; Please visit documentation for the other options and examples
; https://docs.platformio.org/page/projectconf.html

[env]
platform = espressif32
board = esp32-poe
framework = arduino

upload_port=/dev/tty.wchusbserial230
monitor_baud = 115200


[env:controller]
src_filter = +<controller_main.cpp>
lib_deps =
  ESP Async WebServer

[env:LIGHT1]
src_filter = +<light_main.cpp>
lib_deps =
  WebSockets
build_flags = -DROLE=LIGHT1

[env:LIGHT2]
src_filter = +<light_main.cpp>
lib_deps =
  WebSockets
build_flags = -DROLE=LIGHT2

[env:LIGHT3]
src_filter = +<light_main.cpp>
lib_deps =
  WebSockets
build_flags = -DROLE=LIGHT3

[env:LIGHT3]
src_filter = +<light_main.cpp>
lib_deps =
  WebSockets
build_flags = -DROLE=LIGHT4
