ota (experimental)
This commit is contained in:
parent
ef6f9c3dd4
commit
01fa10e3fd
3
.gitignore
vendored
3
.gitignore
vendored
@ -9,5 +9,4 @@
|
|||||||
.vscode/.browse.c_cpp.db*
|
.vscode/.browse.c_cpp.db*
|
||||||
.clang_complete
|
.clang_complete
|
||||||
.gcc-flags.json
|
.gcc-flags.json
|
||||||
src/loraconf.h
|
src/loraconf.h
|
||||||
platformio.ini
|
|
@ -1,15 +1,9 @@
|
|||||||
; PlatformIO Project Configuration File
|
; 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
|
; Please visit documentation for the other options and examples
|
||||||
; http://docs.platformio.org/page/projectconf.html
|
; http://docs.platformio.org/page/projectconf.html
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
; ---> SELECT TARGET PLATFORM HERE! <---
|
; ---> SELECT TARGET PLATFORM HERE! <---
|
||||||
[platformio]
|
[platformio]
|
||||||
;env_default = generic
|
;env_default = generic
|
||||||
@ -17,8 +11,8 @@
|
|||||||
;env_default = heltec
|
;env_default = heltec
|
||||||
;env_default = ttgov1
|
;env_default = ttgov1
|
||||||
;env_default = ttgov2
|
;env_default = ttgov2
|
||||||
env_default = ttgov21
|
;env_default = ttgov21
|
||||||
;env_default = ttgobeam
|
env_default = ttgobeam
|
||||||
;env_default = lopy
|
;env_default = lopy
|
||||||
;env_default = lopy4
|
;env_default = lopy4
|
||||||
;env_default = fipy
|
;env_default = fipy
|
||||||
@ -34,42 +28,20 @@ repository = paxcounter-firmware
|
|||||||
package = ttgov21_old
|
package = ttgov21_old
|
||||||
api_token = 2e10f923df5d47b9c7e25752510322a1d65ee997
|
api_token = 2e10f923df5d47b9c7e25752510322a1d65ee997
|
||||||
|
|
||||||
[wifi]
|
|
||||||
ssid = testnet
|
|
||||||
password = test0815
|
|
||||||
|
|
||||||
[common]
|
[common]
|
||||||
platform = https://github.com/platformio/platform-espressif32.git
|
release_version = 5
|
||||||
|
|
||||||
; firmware version, please modify it between releases
|
|
||||||
; positive integer value
|
|
||||||
;release_version = 1.4.30
|
|
||||||
release_version = 3
|
|
||||||
|
|
||||||
|
[ota]
|
||||||
; build configuration based on Bintray and Wi-Fi settings
|
; build configuration based on Bintray and Wi-Fi settings
|
||||||
|
wifi_ssid = testnet
|
||||||
|
wifi_password = test0815
|
||||||
build_flags =
|
build_flags =
|
||||||
'-DWIFI_SSID="${wifi.ssid}"'
|
'-DWIFI_SSID="${ota.wifi_ssid}"'
|
||||||
'-DWIFI_PASS="${wifi.password}"'
|
'-DWIFI_PASS="${ota.wifi_password}"'
|
||||||
'-DBINTRAY_USER="${bintray.user}"'
|
'-DBINTRAY_USER="${bintray.user}"'
|
||||||
'-DBINTRAY_REPO="${bintray.repository}"'
|
'-DBINTRAY_REPO="${bintray.repository}"'
|
||||||
'-DBINTRAY_PACKAGE="${bintray.package}"'
|
'-DBINTRAY_PACKAGE="${bintray.package}"'
|
||||||
-DVERSION=${common.release_version}
|
-DVERSION=${common.release_version}
|
||||||
;
|
|
||||||
; ---> NOTE: For production run set DEBUG_LEVEL level to NONE! <---
|
|
||||||
; otherwise device may leak RAM
|
|
||||||
;
|
|
||||||
; None
|
|
||||||
; -DCORE_DEBUG_LEVEL=0
|
|
||||||
; Error
|
|
||||||
; -DCORE_DEBUG_LEVEL=1
|
|
||||||
; Warn
|
|
||||||
; -DCORE_DEBUG_LEVEL=2
|
|
||||||
; Info
|
|
||||||
-DCORE_DEBUG_LEVEL=3
|
|
||||||
; Debug
|
|
||||||
; -DCORE_DEBUG_LEVEL=4
|
|
||||||
; Verbose
|
|
||||||
; -DCORE_DEBUG_LEVEL=5
|
|
||||||
|
|
||||||
[common_env_data]
|
[common_env_data]
|
||||||
platform_espressif32 = espressif32@1.3.0
|
platform_espressif32 = espressif32@1.3.0
|
||||||
@ -91,6 +63,21 @@ build_flags =
|
|||||||
-include "src/paxcounter.conf"
|
-include "src/paxcounter.conf"
|
||||||
-include "src/hal/${PIOENV}.h"
|
-include "src/hal/${PIOENV}.h"
|
||||||
-w
|
-w
|
||||||
|
; ---> NOTE: For production run set DEBUG_LEVEL level to NONE! <---
|
||||||
|
; otherwise device may leak RAM
|
||||||
|
;
|
||||||
|
; None
|
||||||
|
; -DCORE_DEBUG_LEVEL=0
|
||||||
|
; Error
|
||||||
|
; -DCORE_DEBUG_LEVEL=1
|
||||||
|
; Warn
|
||||||
|
; -DCORE_DEBUG_LEVEL=2
|
||||||
|
; Info
|
||||||
|
-DCORE_DEBUG_LEVEL=3
|
||||||
|
; Debug
|
||||||
|
; -DCORE_DEBUG_LEVEL=4
|
||||||
|
; Verbose
|
||||||
|
; -DCORE_DEBUG_LEVEL=5
|
||||||
|
|
||||||
[env:ebox]
|
[env:ebox]
|
||||||
platform = ${common_env_data.platform_espressif32}
|
platform = ${common_env_data.platform_espressif32}
|
||||||
@ -102,6 +89,7 @@ monitor_speed = 115200
|
|||||||
lib_deps =
|
lib_deps =
|
||||||
${common_env_data.lib_deps_all}
|
${common_env_data.lib_deps_all}
|
||||||
build_flags =
|
build_flags =
|
||||||
|
${ota.build_flags}
|
||||||
${common_env_data.build_flags}
|
${common_env_data.build_flags}
|
||||||
|
|
||||||
[env:heltec]
|
[env:heltec]
|
||||||
@ -154,10 +142,7 @@ lib_deps =
|
|||||||
${common_env_data.lib_deps_all}
|
${common_env_data.lib_deps_all}
|
||||||
${common_env_data.lib_deps_display}
|
${common_env_data.lib_deps_display}
|
||||||
build_flags =
|
build_flags =
|
||||||
${common.build_flags}
|
|
||||||
${common_env_data.build_flags}
|
${common_env_data.build_flags}
|
||||||
;upload_protocol = custom
|
|
||||||
;extra_scripts = pre:publish_firmware.py
|
|
||||||
|
|
||||||
[env:ttgobeam]
|
[env:ttgobeam]
|
||||||
platform = ${common_env_data.platform_espressif32}
|
platform = ${common_env_data.platform_espressif32}
|
||||||
@ -170,8 +155,11 @@ lib_deps =
|
|||||||
${common_env_data.lib_deps_all}
|
${common_env_data.lib_deps_all}
|
||||||
${common_env_data.lib_deps_gps}
|
${common_env_data.lib_deps_gps}
|
||||||
build_flags =
|
build_flags =
|
||||||
|
${ota.build_flags}
|
||||||
${common_env_data.build_flags}
|
${common_env_data.build_flags}
|
||||||
-mfix-esp32-psram-cache-issue
|
-mfix-esp32-psram-cache-issue
|
||||||
|
upload_protocol = custom
|
||||||
|
extra_scripts = pre:publish_firmware.py
|
||||||
|
|
||||||
[env:fipy]
|
[env:fipy]
|
||||||
platform = ${common_env_data.platform_espressif32}
|
platform = ${common_env_data.platform_espressif32}
|
||||||
@ -212,6 +200,7 @@ lib_deps =
|
|||||||
${common_env_data.lib_deps_rgbled}
|
${common_env_data.lib_deps_rgbled}
|
||||||
${common_env_data.lib_deps_gps}
|
${common_env_data.lib_deps_gps}
|
||||||
build_flags =
|
build_flags =
|
||||||
|
${ota.build_flags}
|
||||||
${common_env_data.build_flags}
|
${common_env_data.build_flags}
|
||||||
-mfix-esp32-psram-cache-issue
|
-mfix-esp32-psram-cache-issue
|
||||||
|
|
||||||
@ -267,4 +256,5 @@ lib_deps =
|
|||||||
${common_env_data.lib_deps_gps}
|
${common_env_data.lib_deps_gps}
|
||||||
${common_env_data.lib_deps_display}
|
${common_env_data.lib_deps_display}
|
||||||
build_flags =
|
build_flags =
|
||||||
|
${ota.build_flags}
|
||||||
${common_env_data.build_flags}
|
${common_env_data.build_flags}
|
||||||
|
Loading…
Reference in New Issue
Block a user