forked from MichaelEFlip/Lora-TTNMapper-T-Beam
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Breaking change! The GPS is now expected to run at 115k baud. Others: Minimum distance in meters between updates Automatic shutdown if battery voltage goes below certain value
- Loading branch information
1 parent
318afd2
commit 4983af9
Showing
9 changed files
with
168 additions
and
176 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -58,3 +58,4 @@ dkms.conf | |
.vscode/c_cpp_properties.json | ||
.vscode/launch.json | ||
.vscode/ipch | ||
src/config.h |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,26 +1,26 @@ | ||
// Using ABP for now. | ||
//#define OTAA | ||
|
||
#ifndef LORA_TTNMAPPER_TBEAM_CONFIG_INCLUDED | ||
#define LORA_TTNMAPPER_TBEAM_CONFIG_INCLUDED | ||
|
||
#define CFG_eu868 1 | ||
|
||
#ifndef OTAA | ||
// UPDATE WITH YOUR TTN KEYS AND ADDR. | ||
// Setting for ABP | ||
static PROGMEM u1_t NWKSKEY[16] = { 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 }; // LoRaWAN NwkSKey, network session key | ||
static u1_t PROGMEM APPSKEY[16] = { 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 }; // LoRaWAN AppSKey, application session key | ||
static const u4_t DEVADDR = 0x00000000; // LoRaWAN end-device address (DevAddr) | ||
#else | ||
// Settings from OTAA device (not used) | ||
static const u1_t PROGMEM DEVEUI[8]={ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 } ; // Device EUI, hex, lsb | ||
static const u1_t PROGMEM APPEUI[8]={ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 }; // Application EUI, hex, lsb | ||
static const u1_t PROGMEM APPKEY[16] = { 0x12, 0x23, 0x45, 0x67, 0x89, 0x01, 0x23, 0x45, 0x67, 0x89, 0x01, 0x23, 0x45, 0x67, 0x89, 0x01 }; // App Key, hex, msb | ||
|
||
void os_getDevEui (u1_t* buf) { memcpy_P(buf, DEVEUI, 8);} | ||
void os_getArtEui (u1_t* buf) { memcpy_P(buf, APPEUI, 8);} | ||
void os_getDevKey (u1_t* buf) { memcpy_P(buf, APPKEY, 16);} | ||
#endif | ||
|
||
#endif //LORA_TTNMAPPER_TBEAM_CONFIG_INCLUDED | ||
// Using ABP for now. | ||
//#define OTAA | ||
|
||
#ifndef LORA_TTNMAPPER_TBEAM_CONFIG_INCLUDED | ||
#define LORA_TTNMAPPER_TBEAM_CONFIG_INCLUDED | ||
|
||
#define CFG_eu868 1 | ||
|
||
#ifndef OTAA | ||
// UPDATE WITH YOUR TTN KEYS AND ADDR. | ||
// Setting for ABP | ||
static PROGMEM u1_t NWKSKEY[16] = { 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 }; // LoRaWAN NwkSKey, network session key | ||
static u1_t PROGMEM APPSKEY[16] = { 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 }; // LoRaWAN AppSKey, application session key | ||
static const u4_t DEVADDR = 0x00000000; // LoRaWAN end-device address (DevAddr) | ||
#else | ||
// Settings from OTAA device (not used) | ||
static const u1_t PROGMEM DEVEUI[8]={ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 } ; // Device EUI, hex, lsb | ||
static const u1_t PROGMEM APPEUI[8]={ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 }; // Application EUI, hex, lsb | ||
static const u1_t PROGMEM APPKEY[16] = { 0x12, 0x23, 0x45, 0x67, 0x89, 0x01, 0x23, 0x45, 0x67, 0x89, 0x01, 0x23, 0x45, 0x67, 0x89, 0x01 }; // App Key, hex, msb | ||
|
||
void os_getDevEui (u1_t* buf) { memcpy_P(buf, DEVEUI, 8);} | ||
void os_getArtEui (u1_t* buf) { memcpy_P(buf, APPEUI, 8);} | ||
void os_getDevKey (u1_t* buf) { memcpy_P(buf, APPKEY, 16);} | ||
#endif | ||
|
||
#endif //LORA_TTNMAPPER_TBEAM_CONFIG_INCLUDED |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.