-
Notifications
You must be signed in to change notification settings - Fork 0
/
platformio.ini
60 lines (57 loc) · 1.76 KB
/
platformio.ini
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
; 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
[platformio]
src_dir = ./
default_envs = FF_PowerMeter
[env]
framework = arduino
platform = [email protected]
board = d1_mini
board_build.f_cpu = 160000000L
board_build.ldscript = eagle.flash.4m1m.ld
board_build.filesystem = littlefs
upload_speed = 460800
monitor_speed = 74880
build_flags =
-D MQTT_MAX_PACKET_SIZE=512
-D WEBSOCKET_DISABLED
-D USE_LIB_WEBSOCKET
-D REMOTE_DEBUG
-D HARDWARE_WATCHDOG_PIN=D4
-D HARDWARE_WATCHDOG_ON_DELAY=5000
-D HARDWARE_WATCHDOG_OFF_DELAY=1
-D HARDWARE_WATCHDOG_INITIAL_STATE=0
-D FF_TRACE_KEEP_ALIVE=5*60*1000
-D FF_TRACE_USE_SYSLOG
-D INCLUDE_DOMOTICZ
-D CONNECTION_LED=-1
-D AP_ENABLE_BUTTON=-1
-D AP_ENABLE_TIMEOUT=240
-D DEBUG_FF_WEBSERVER
# Define PZEM004_NO_SWSERIAL if you want to use Serial connection
-D PZEM004_NO_SWSERIAL
# Don't define PZEM004_NO_SWSERIAL, but SOFTWARE_RX/TX_PIN to use Software serial
#-D SOFTWARE_RX_PIN=D7
#-D SOFTWARE_TX_PIN=D8
lib_deps =
https://github.com/me-no-dev/ESPAsyncTCP
https://github.com/gmag11/NtpClient
https://github.com/me-no-dev/ESPAsyncWebServer
https://github.com/bblanchon/ArduinoJson
https://github.com/FlyingDomotic/FF_Trace
https://github.com/FlyingDomotic/FF_WebServer
https://github.com/arcao/Syslog
https://github.com/marvinroger/async-mqtt-client
joaolopesf/[email protected]
https://github.com/mandulaj/PZEM-004T-v30
extra_scripts =
pre:setFirmwareName.py
[env:FF_PowerMeter]
build_flags = ${env.build_flags}