make sure user doesn't accidentally put their credentials in git
This commit is contained in:
parent
ccc35bb1f9
commit
128c10ca88
1
.gitignore
vendored
1
.gitignore
vendored
@ -1,6 +1,7 @@
|
|||||||
.pio
|
.pio
|
||||||
main/configuration.h
|
main/configuration.h
|
||||||
main/credentials.h
|
main/credentials.h
|
||||||
|
credentials-private.h
|
||||||
|
|
||||||
# ignore vscode IDE settings files
|
# ignore vscode IDE settings files
|
||||||
.vscode/*
|
.vscode/*
|
||||||
|
@ -24,6 +24,9 @@ Credentials file
|
|||||||
|
|
||||||
#ifdef USE_OTAA
|
#ifdef USE_OTAA
|
||||||
|
|
||||||
|
#if 0
|
||||||
|
// copy these variables to ../credentials-private.h and customize with your secret appkey.
|
||||||
|
|
||||||
// This EUI must be in little-endian format, so least-significant-byte
|
// This EUI must be in little-endian format, so least-significant-byte
|
||||||
// first. When copying an EUI from ttnctl output, this means to reverse
|
// first. When copying an EUI from ttnctl output, this means to reverse
|
||||||
// the bytes. For TTN issued EUIs the last bytes should be 0x00, 0x00,
|
// the bytes. For TTN issued EUIs the last bytes should be 0x00, 0x00,
|
||||||
@ -39,5 +42,6 @@ Credentials file
|
|||||||
// practice, a key taken from ttnctl can be copied as-is.
|
// practice, a key taken from ttnctl can be copied as-is.
|
||||||
// The key shown here is the semtech default key.
|
// The key shown here is the semtech default key.
|
||||||
static const u1_t PROGMEM APPKEY[16] = { 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 };
|
static const u1_t PROGMEM APPKEY[16] = { 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 };
|
||||||
|
#endif
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
@ -31,6 +31,9 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|||||||
#include "configuration.h"
|
#include "configuration.h"
|
||||||
#include "credentials.h"
|
#include "credentials.h"
|
||||||
|
|
||||||
|
// This file should not be in any publig git repos, it contains your secret APPKEY
|
||||||
|
#include "../credentials-private.h"
|
||||||
|
|
||||||
// -----------------------------------------------------------------------------
|
// -----------------------------------------------------------------------------
|
||||||
// Globals
|
// Globals
|
||||||
// -----------------------------------------------------------------------------
|
// -----------------------------------------------------------------------------
|
||||||
|
Loading…
Reference in New Issue
Block a user