ENTS-tock
Environmental NeTworked Sensor firmware on Tock OS
Loading...
Searching...
No Matches
config.h File Reference
#include <RadioLib.h>
#include "libtockHal.h"

Go to the source code of this file.

Macros

#define RADIOLIB_LORAWAN_JOIN_EUI   01, 01, 01, 01, 01, 01, 01, 01
 
#define RADIOLIB_LORAWAN_DEV_EUI   70, B3, D5, 7E, D0, 07, 74, 17
 
#define RADIOLIB_LORAWAN_APP_KEY    2B,7E,15,16,28,AE,D2,A6,AB,F7,15,88,09,CF,4F,3C
 
#define RADIOLIB_LORAWAN_NWK_KEY    2B,7E,15,16,28,AE,D2,A6,AB,F7,15,88,09,CF,4F,3C
 
#define RAW_TO_INT8A(a, b, c, d, e, f, g, h, i, j, k, l, m, n, o, p)
 
#define RAW8_TO_INT8A(a, b, c, d)   0x##a##b##c##d
 
#define RAW32_TO_INT8A(a, b, c, d, e, f, g, h)    {0x##a, 0x##b, 0x##c, 0x##d, 0x##e, 0x##f, 0x##g, 0x##h}
 
#define FORMAT_KEY(...)   RAW_TO_INT8A(__VA_ARGS__)
 
#define FORMAT8_KEY(...)   RAW8_TO_INT8A(__VA_ARGS__)
 
#define FORMAT32_KEY(...)   RAW32_TO_INT8A(__VA_ARGS__)
 

Variables

const uint32_t uplinkIntervalSeconds = 5UL * 60UL
 
const LoRaWANBand_t * Region = &US915
 
const uint8_t subBand = 2
 

Macro Definition Documentation

◆ FORMAT32_KEY

#define FORMAT32_KEY (   ...)    RAW32_TO_INT8A(__VA_ARGS__)

Definition at line 63 of file config.h.

◆ FORMAT8_KEY

#define FORMAT8_KEY (   ...)    RAW8_TO_INT8A(__VA_ARGS__)

Definition at line 62 of file config.h.

◆ FORMAT_KEY

#define FORMAT_KEY (   ...)    RAW_TO_INT8A(__VA_ARGS__)

Definition at line 61 of file config.h.

◆ RADIOLIB_LORAWAN_APP_KEY

#define RADIOLIB_LORAWAN_APP_KEY    2B,7E,15,16,28,AE,D2,A6,AB,F7,15,88,09,CF,4F,3C

Definition at line 34 of file config.h.

◆ RADIOLIB_LORAWAN_DEV_EUI

#define RADIOLIB_LORAWAN_DEV_EUI   70, B3, D5, 7E, D0, 07, 74, 17

Definition at line 31 of file config.h.

◆ RADIOLIB_LORAWAN_JOIN_EUI

#define RADIOLIB_LORAWAN_JOIN_EUI   01, 01, 01, 01, 01, 01, 01, 01

Definition at line 26 of file config.h.

◆ RADIOLIB_LORAWAN_NWK_KEY

#define RADIOLIB_LORAWAN_NWK_KEY    2B,7E,15,16,28,AE,D2,A6,AB,F7,15,88,09,CF,4F,3C

Definition at line 38 of file config.h.

◆ RAW32_TO_INT8A

#define RAW32_TO_INT8A (   a,
  b,
  c,
  d,
  e,
  f,
  g,
  h 
)     {0x##a, 0x##b, 0x##c, 0x##d, 0x##e, 0x##f, 0x##g, 0x##h}

Definition at line 58 of file config.h.

◆ RAW8_TO_INT8A

#define RAW8_TO_INT8A (   a,
  b,
  c,
  d 
)    0x##a##b##c##d

Definition at line 57 of file config.h.

◆ RAW_TO_INT8A

#define RAW_TO_INT8A (   a,
  b,
  c,
  d,
  e,
  f,
  g,
  h,
  i,
  j,
  k,
  l,
  m,
  n,
  o,
  p 
)
Value:
{0x##a, 0x##b, 0x##c, 0x##d, 0x##e, 0x##f, 0x##g, 0x##h, \
0x##i, 0x##j, 0x##k, 0x##l, 0x##m, 0x##n, 0x##o, 0x##p}
uint8_t i

Definition at line 53 of file config.h.

Variable Documentation

◆ Region

const LoRaWANBand_t* Region = &US915

Definition at line 47 of file config.h.

Referenced by lorawan_init().

◆ subBand

const uint8_t subBand = 2

Definition at line 51 of file config.h.

Referenced by lorawan_init().

◆ uplinkIntervalSeconds

const uint32_t uplinkIntervalSeconds = 5UL * 60UL

Definition at line 22 of file config.h.