LoRaWAN-Signal-Mapping/iot/main/settings.custom.cpp.example

32 lines
862 B
Text
Raw Normal View History

2019-06-24 13:47:14 +00:00
#include <lmic.h>
#include <hal/hal.h>
#include <SPI.h>
#include "settings.h"
2019-06-24 13:27:22 +00:00
// LoRaWAN NwkSKey, network session key
// This is the default Semtech key, which is used by the early prototype TTN
// network.
const PROGMEM u1_t NWKSKEY[16] = { .... };
2019-06-24 13:27:22 +00:00
// LoRaWAN AppSKey, application session key
// This is the default Semtech key, which is used by the early prototype TTN
// network.
const u1_t PROGMEM APPSKEY[16] = { ..... };
2019-06-24 13:27:22 +00:00
// LoRaWAN end-device address (DevAddr)
const u4_t DEVADDR = 0x....; // <-- Change this address for every node!
2019-06-24 13:47:14 +00:00
// The RFM95 pin mapping
2019-06-24 13:47:14 +00:00
const lmic_pinmap lmic_pins = {
.nss = PIN_SPI_CS_RFM95,
.rxtx = LMIC_UNUSED_PIN,
.rst = 9,
.dio = {2, 6, 7},
};
// The AES-ECB 128-bit key to encrypt the data with.
// See the README for a Bash oneliner that generates a new key in the right format.
uint8_t encrypt_key[16] = { ..... };