changes in ceredentials-handling of sourcefiles
This commit is contained in:
parent
4bffdf932e
commit
01ecf5a4a4
8
Software/ChainLube/git_rev_macro.py
Normal file
8
Software/ChainLube/git_rev_macro.py
Normal file
@ -0,0 +1,8 @@
|
|||||||
|
import subprocess
|
||||||
|
|
||||||
|
revision = (
|
||||||
|
subprocess.check_output(["git", "rev-parse", "--short=10", "HEAD"])
|
||||||
|
.strip()
|
||||||
|
.decode("utf-8")
|
||||||
|
)
|
||||||
|
print("-DGIT_REV='\"%s\"'" % revision)
|
@ -17,14 +17,17 @@ platform = espressif8266
|
|||||||
board = d1_mini
|
board = d1_mini
|
||||||
framework = arduino
|
framework = arduino
|
||||||
|
|
||||||
|
upload_port = 10.0.1.90
|
||||||
;upload_port = 192.168.0.20
|
upload_protocol = espota
|
||||||
;upload_protocol = espota
|
upload_flags =
|
||||||
;upload_flags =
|
--auth = ${wifi_cred.admin_pass}
|
||||||
; --auth="chainlube"
|
|
||||||
upload_protocol=esptool
|
|
||||||
|
|
||||||
build_flags =
|
build_flags =
|
||||||
|
!python git_rev_macro.py
|
||||||
|
-DWIFI_SSID=${wifi_cred.wifi_ssid}
|
||||||
|
-DWIFI_PASSWORD=${wifi_cred.wifi_password}
|
||||||
|
-DADMIN_PASS=${wifi_cred.admin_pass}
|
||||||
|
|
||||||
;-DDEBUG
|
;-DDEBUG
|
||||||
-fexceptions
|
-fexceptions
|
||||||
|
|
||||||
|
@ -1,5 +1,4 @@
|
|||||||
[common]
|
[wifi_cred]
|
||||||
build_flags =
|
admin_pass = 'adminpass'
|
||||||
-DWIFI_SSID='"Wifi-SSID"'
|
wifi_ssid = 'wifi-ssid'
|
||||||
-DWIFI_PASSWORD='"Wifi-Password"'
|
wifi_password = 'wifi-pass'
|
||||||
-DADMIN_PASS='"adminpass"'
|
|
Loading…
x
Reference in New Issue
Block a user