-
Notifications
You must be signed in to change notification settings - Fork 0
/
platformio.sample.ini
43 lines (41 loc) · 1.47 KB
/
platformio.sample.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
; 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
;
; *** NOTE: Rename/copy to `platformio.ini` and fill in your own configuration ***
[env:release]
platform = espressif8266
framework = arduino
board = shelly1
monitor_speed = 115200
upload_speed = 115200
;upload_protocol = espota ; Uncomment after initial upload to enable OTA updates
;upload_port = 192.168.1.3 ; Uncomment and replace with actual IP address for OTA updates
lib_deps =
https://github.com/thedanbob/pubsubclient
build_flags =
'-DNAME="Garage Door"'
'-DDEVICE_NAME="Shelly Garage Door"'
'-DMQTT_BASE_TOPIC="home/garage_door"'
'-DMQTT_SERVER="192.168.1.2"'
'-DMQTT_USER="shelly"'
'-DMQTT_PASS="mqttpassword"'
'-DWIFI_SSID="wifi-iot"'
'-DWIFI_PASS="wifipassword"'
-DDOOR_MOVE_TIME=15 ; Number of seconds it takes the door to open/close (default: 18)
!echo "'-DVERSION="'"'$(date +%%Y%%m%%d%%H%%M%%S)'"'"'" ; Set version string to build time: YYYYmmddHHMMSS
-DNO_GLOBAL_MDNS ; Disable unused mDNS code in ArduinoOTA
extra_scripts =
scripts/gzip-firmware.py ; Enable gzipped firmware updates
[env:debug]
extends = env:release
build_type = debug
build_flags =
${env:release.build_flags}
-DDEBUG