Skip to content

Commit

Permalink
Introducing credentials template mechanism
Browse files Browse the repository at this point in the history
  • Loading branch information
BorisBrock committed Sep 14, 2024
1 parent 940494e commit 298d8d1
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 1 deletion.
6 changes: 5 additions & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,5 +33,9 @@ jobs:
- name: Installing PlatformIO Core
run: pip install --upgrade platformio

- name: Build PlatformIO examples
- name: Provide Credentials File
run: |
cp src/Configuration/Credentials.cpp.template src/Configuration/Credentials.cpp
- name: Build HeidelBridge
run: pio ci --project-conf platformio.ini --verbose ./
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,4 @@
.vscode/launch.json
.vscode/ipch
/.vscode
src/Configuration/Credentials.cpp
13 changes: 13 additions & 0 deletions src/Configuration/Credentials.cpp.template
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
#include <Arduino.h>
#include "Credentials.h"

// Todo:
// 1. Copy this file
// 2. Rename it to "Credentials.cpp"
// 3. Insert your WiFi credentials

namespace Credentials
{
const char *WiFi_SSID = "YourSSID";
const char *WiFi_Password = "YourPassword";
}

0 comments on commit 298d8d1

Please sign in to comment.