-
Notifications
You must be signed in to change notification settings - Fork 0
/
platformio.ini
61 lines (55 loc) · 1.52 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
61
; 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]
default_envs = d1_serial
[common_env_data]
; custom script for setting up build flags
build_flags = !python bin/create_build_flags.py
'-DESP_HOSTNAME="esp_skeleton"'
'-DMQTT_TOPIC="esp_skeleton"'
'-DNTP_SERVER="192.168.1.1"'
'-DUPDATE_INTERVAL=10000'
'-DFHEM_IODEV="MQTT_Broker"'
; Library dependencies
lib_deps_builtin =
PubSubClient
arduino-libraries/NTPClient@^3.1.0
; Monitor filter
monitor_filters = colorize, default
; Serial upload device
[env:d1_serial]
platform = espressif8266
board = d1_mini
framework = arduino
board_build.mcu = esp8266
board_build.f_cpu = 80000000L
monitor_speed = 115200
build_flags =
${common_env_data.build_flags}
lib_deps =
${common_env_data.lib_deps_builtin}
; initial setup via
upload_protocol = esptool
; Over the air upload device
[env:d1_ota]
platform = espressif8266
board = d1_mini
framework = arduino
board_build.mcu = esp8266
board_build.f_cpu = 80000000L
monitor_speed = 115200
build_flags =
${common_env_data.build_flags}
lib_deps =
${common_env_data.lib_deps_builtin}
; Over the air settings
upload_protocol = espota
upload_port = 192.168.1.59
upload_flags = --auth=${sysenv.ESP_OTA_PASSWORD}