Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
M
marlin-anet-a8
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Jonas Leder
marlin-anet-a8
Commits
38a9706e
Unverified
Commit
38a9706e
authored
5 years ago
by
felixstorm
Committed by
GitHub
5 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Keep secure credentials in a separate config file (#16773)
parent
62d9e3f5
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
.gitignore
+3
-0
3 additions, 0 deletions
.gitignore
Marlin/Configuration_adv.h
+10
-2
10 additions, 2 deletions
Marlin/Configuration_adv.h
buildroot/bin/opt_set
+2
-1
2 additions, 1 deletion
buildroot/bin/opt_set
buildroot/share/tests/esp32-tests
+2
-2
2 additions, 2 deletions
buildroot/share/tests/esp32-tests
with
17 additions
and
5 deletions
.gitignore
+
3
−
0
View file @
38a9706e
...
...
@@ -146,6 +146,9 @@ Marlin/*/*/readme.txt
Marlin/*/*/*/readme.txt
Marlin/*/*/*/*/readme.txt
# Secure Credentials
Configuration_Secure.h
#Visual Studio
*.sln
*.vcxproj
...
...
This diff is collapsed.
Click to expand it.
Marlin/Configuration_adv.h
+
10
−
2
View file @
38a9706e
...
...
@@ -3023,11 +3023,19 @@
//#define ESP3D_WIFISUPPORT // ESP3D Library WiFi management (https://github.com/luc-github/ESP3DLib)
#if EITHER(WIFISUPPORT, ESP3D_WIFISUPPORT)
#define WIFI_SSID "Wifi SSID"
#define WIFI_PWD "Wifi Password"
//#define WEBSUPPORT // Start a webserver (which may include auto-discovery)
//#define OTASUPPORT // Support over-the-air firmware updates
//#define WIFI_CUSTOM_COMMAND // Accept feature config commands (e.g., WiFi ESP3D) from the host
/**
* To set a default WiFi SSID / Password, create a file called Configuration_Secure.h with
* the following defines, customized for your network. This specific file is excluded via
* .gitignore to prevent it from accidentally leaking to the public.
*
* #define WIFI_SSID "WiFi SSID"
* #define WIFI_PWD "WiFi Password"
*/
//#include "Configuration_Secure.h" // External file with WiFi SSID / Password
#endif
/**
...
...
This diff is collapsed.
Click to expand it.
buildroot/bin/opt_set
+
2
−
1
View file @
38a9706e
...
...
@@ -8,4 +8,5 @@ SED=$(which gsed || which sed)
# Logic for returning nonzero based on answer here: https://stackoverflow.com/a/15966279/104648
eval
"
${
SED
}
-i '/
\(\/\/\)
*
\(
[[:blank:]]*
\)\(
#define
\b
${
1
}
\b\)
.*
$/
{s//
\2\3
${
2
}
/;h};
\$
{x;/./{x;q0};x;q9}' Marlin/Configuration.h"
||
eval
"
${
SED
}
-i '/
\(\/\/\)
*
\(
[[:blank:]]*
\)\(
#define
\b
${
1
}
\b\)
.*
$/
{s//
\2\3
${
2
}
/;h};
\$
{x;/./{x;q0};x;q9}' Marlin/Configuration_adv.h"
||
(
echo
"ERROR: opt_set Can't find
${
1
}
"
>
&2
&&
exit
9
)
eval
"echo '#define
${
@
}
' >>Marlin/Configuration_adv.h"
||
(
echo
"ERROR: opt_set Can't set or add
${
1
}
"
>
&2
&&
exit
9
)
This diff is collapsed.
Click to expand it.
buildroot/share/tests/esp32-tests
+
2
−
2
View file @
38a9706e
...
...
@@ -12,8 +12,8 @@ set -e
restore_configs
opt_set MOTHERBOARD BOARD_ESPRESSIF_ESP32
opt_enable WIFISUPPORT GCODE_MACROS BAUD_RATE_GCODE
opt_
set
WIFI_SSID
"
\"
ssid
\"
"
opt_
set
WIFI_PWD
"
\"
password
\"
"
opt_
add
WIFI_SSID
"
\"
ssid
\"
"
opt_
add
WIFI_PWD
"
\"
password
\"
"
opt_set TX_BUFFER_SIZE 64
opt_add WEBSUPPORT
exec_test
$1
$2
"ESP32 with WIFISUPPORT and WEBSUPPORT"
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment