-
Notifications
You must be signed in to change notification settings - Fork 1
/
platformio.ini
72 lines (68 loc) · 1.81 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
62
63
64
65
66
67
68
69
70
71
72
; 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 = nodemcuv2_mac
[common]
speed = 115200
port_win = COM3
port_mac = /dev/cu.usbserial-1420
port_ip = 192.168.30.26
platform = espressif8266
framework = arduino
build_flags =
-D MQTT_MAX_PACKET_SIZE=1024
-DUSE_CONFIG_OVERRIDE
; -DDEBUG
; -DMQTT_DEBUG
; -DSNSW_DEBUG
lib_deps =
PubSubClient@^2.7
ArduinoJson@^6.15.1
SwartNinjaRSW
SwartNinjaSW
SwartNinjaSMD
[env:nodemcuv2_win]
platform = ${common.platform}
board = nodemcuv2
upload_resetmethod = nodemcu
framework = ${common.framework}
build_flags = ${common.build_flags}
lib_deps = ${common.lib_deps}
upload_speed = ${common.speed}
monitor_speed = ${common.speed}
upload_port = ${common.port_win}
monitor_port = ${common.port_win}
[env:nodemcuv2_mac]
platform = ${common.platform}
board = nodemcuv2
upload_resetmethod = nodemcu
framework = ${common.framework}
build_flags = ${common.build_flags}
lib_deps = ${common.lib_deps}
upload_speed = ${common.speed}
monitor_speed = ${common.speed}
upload_port = ${common.port_mac}
monitor_port = ${common.port_mac}
[env:nodemcuv2_ota]
platform = ${common.platform}
board = nodemcuv2
upload_resetmethod = nodemcu
framework = ${common.framework}
build_flags = ${common.build_flags}
lib_deps = ${common.lib_deps}
upload_speed = ${common.speed}
monitor_speed = ${common.speed}
upload_port = ${common.port_ip}
monitor_port = ${common.port_ip}
upload_protocol = espota
; upload_flags =
; --port=8266
; --host_ip=192.168.1.206
; --host_port=8266