esp-signed-updater-mqtt/platformio.ini

50 lines
1.4 KiB
INI

; ----------------------------------------------------------------------------
; "THE TSCHUNK LICENSE" (Revision 42):
; <christian@staudte.it> wrote this file. As long as you retain this notice
; you can do whatever you want with this stuff. If we meet some day, and you
; think this stuff is worth it, you can buy me a Tschunk in return.
; ----------------------------------------------------------------------------
[platformio]
default_envs = serial
[common]
ssid = wifi
password = foobar
mqtt_server = mqtt
mqtt_room = test
mqtt_device = ledstrip
; must be a positive integer value
; must be incremented for automated updates to happen!
firmware_version = 1
[uploadconfig]
sign_prog = $PROJECT_PACKAGES_DIR/framework-arduinoespressif8266/tools/signing.py
sign_key = ../private.pem
sign_cert = ../public.pem
upl_url = http://mqtt/arduino-upload.php
upl_token = secretpassphrase
[env]
platform = espressif8266
board = d1_mini
framework = arduino
build_flags =
'-DINI_SSID="${common.ssid}"'
'-DINI_PSK="${common.password}"'
'-DINI_SERVER="${common.mqtt_server}"'
'-DINI_ROOM="${common.mqtt_room}"'
'-DINI_DEVICE="${common.mqtt_device}"'
'-DINI_VERSION="${common.firmware_version}"'
extra_scripts = pre:sign_and_upload.py
[env:serial]
upload_port = /dev/ttyUSB*
upload_speed = 115200
monitor_port = /dev/ttyUSB*
monitor_speed = 115200
[env:web]
upload_protocol = custom