janitza104_esp32/platformio.ini
2025-06-22 18:28:29 +03:00

35 lines
1.0 KiB
INI

; 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:denky32]
platform = espressif32
board = esp32dev
framework = arduino
lib_deps =
4-20ma/ModbusMaster@^2.0.1
knolleary/PubSubClient@^2.8
monitor_speed = 115200
build_flags =
-DCONFIG_FW_VERSION=1
-DCONFIG_MCU_LED_GPIO=2
-DCONFIG_JANITZA_EMULATE=1
-DCONFIG_JANITZA_EMULATE_ERROR=0
-DCONFIG_MODBUS_DIR_PIN=4
-DCONFIG_MODBUS_RX_PIN=18
-DCONFIG_MODBUS_TX_PIN=19
-DCONFIG_MODBUS_SLAVE_ID=1
-DCONFIG_MODBUS_SERIAL_BAUD=9600
-DCONFIG_MQTT_SERVER="\"mqtt.example.org\""
-DCONFIG_MQTT_PORT=8883
-DCONFIG_MQTT_USERNAME="\"username\""
-DCONFIG_MQTT_PASSWORD="\"password\""
-DCONFIG_WIFI_HOSTNAME="\"ESP_J104R_0001\""
-DCONFIG_NODE_ID=0
build_type = release