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
|
||||
framework = arduino
|
||||
|
||||
|
||||
;upload_port = 192.168.0.20
|
||||
;upload_protocol = espota
|
||||
;upload_flags =
|
||||
; --auth="chainlube"
|
||||
upload_protocol=esptool
|
||||
upload_port = 10.0.1.90
|
||||
upload_protocol = espota
|
||||
upload_flags =
|
||||
--auth = ${wifi_cred.admin_pass}
|
||||
|
||||
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
|
||||
-fexceptions
|
||||
|
||||
|
@ -1,5 +1,4 @@
|
||||
[common]
|
||||
build_flags =
|
||||
-DWIFI_SSID='"Wifi-SSID"'
|
||||
-DWIFI_PASSWORD='"Wifi-Password"'
|
||||
-DADMIN_PASS='"adminpass"'
|
||||
[wifi_cred]
|
||||
admin_pass = 'adminpass'
|
||||
wifi_ssid = 'wifi-ssid'
|
||||
wifi_password = 'wifi-pass'
|
Loading…
x
Reference in New Issue
Block a user