Subversion Repositories ESP8266_P1_Meter

Rev

Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
2 raymond 1
 
2
[platformio]
3
default_envs = ci-arduino-3-latest, ci-esp8266
4
lib_dir = .
5
 
6
[env]
7
framework = arduino
8
upload_protocol = esptool
9
monitor_speed = 115200
10
lib_compat_mode = strict
11
lib_ldf_mode = chain+
12
lib_ignore = examples
13
build_flags =
14
  -Og
15
  -Wall -Wextra
16
  -Wno-unused-parameter
17
 
18
; -----------------------------------------------------------------------------
19
; CI (ESP32) - used by: .github/workflows/Build (ESP32 dev).yml
20
; -----------------------------------------------------------------------------
21
[env:ci-arduino-3-latest]
22
platform = https://github.com/pioarduino/platform-espressif32/releases/download/55.03.34/platform-espressif32.zip
23
; NOTE: this env is meant to be driven by CI (matrix). You must set PIO_BOARD.
24
; Examples:
25
;   Linux/macOS (bash):  PIO_BOARD=esp32dev pio run -e ci-arduino-3-latest
26
;   Windows (PowerShell): $env:PIO_BOARD='esp32dev'; pio run -e ci-arduino-3-latest
27
board = ${sysenv.PIO_BOARD}
28
monitor_filters = esp32_exception_decoder, log2file
29
build_flags =
30
  ${env.build_flags}
31
  -I$PROJECT_PACKAGES_DIR/framework-arduinoespressif32/libraries/Network/src
32
  -I$PROJECT_PACKAGES_DIR/framework-arduinoespressif32/libraries/FS/src
33
  -I$PROJECT_PACKAGES_DIR/framework-arduinoespressif32/libraries/WiFi/src
34
  -D CORE_DEBUG_LEVEL=ARDUHAL_LOG_LEVEL_VERBOSE
35
  -D CONFIG_ASYNC_TCP_MAX_ACK_TIME=5000
36
  -D CONFIG_ASYNC_TCP_PRIORITY=10
37
  -D CONFIG_ASYNC_TCP_QUEUE_SIZE=64
38
  -D CONFIG_ASYNC_TCP_RUNNING_CORE=1
39
  -D CONFIG_ASYNC_TCP_STACK_SIZE=4096
40
 
41
lib_deps =
42
  bblanchon/ArduinoJson
43
  ESP32Async/AsyncTCP
44
  ESP32Async/ESPAsyncWebServer
45
  ${platformio.packages_dir}/framework-arduinoespressif32/libraries/Network
46
  https://github.com/cotestatnt/Arduino-MySQL.git
47
  https://github.com/OSSLibraries/Arduino_MFRC522v2.git
48
  https://github.com/knolleary/pubsubclient.git
49
board_build.partitions = partitions.csv
50
board_build.filesystem = littlefs
51
 
52
; -----------------------------------------------------------------------------
53
; CI (ESP8266) - used by: .github/workflows/build-esp8266.yml
54
; -----------------------------------------------------------------------------
55
[env:ci-esp8266]
56
platform = espressif8266
57
; NOTE: this env is meant to be driven by CI. You must set PIO_BOARD.
58
; Example (PowerShell): $env:PIO_BOARD='d1_mini'; pio run -e ci-esp8266
59
board = ${sysenv.PIO_BOARD}
60
monitor_filters = esp8266_exception_decoder, log2file
61
build_flags = ${env.build_flags}
62
lib_deps =
63
  bblanchon/ArduinoJson
64
  ESP32Async/ESPAsyncTCP
65
  ESP32Async/ESPAsyncWebServer
66