commit
3f3b26ab43
@ -93,7 +93,7 @@ If your device has a **real time clock** it can be updated bei either LoRaWAN ne
|
|||||||
|
|
||||||
# Building
|
# Building
|
||||||
|
|
||||||
Use <A HREF="https://platformio.org/">PlatformIO</A> with your preferred IDE for development and building this code. Make sure you have latest PlatformIO version.
|
Use <A HREF="https://platformio.org/">PlatformIO</A> with your preferred IDE for development and building this code. Make sure you have latest PlatformIO version, **at least v4.0.0a15**.
|
||||||
|
|
||||||
# Uploading
|
# Uploading
|
||||||
|
|
||||||
|
@ -74,7 +74,10 @@ build_flags_basic =
|
|||||||
-include "src/hal/${PIOENV}.h"
|
-include "src/hal/${PIOENV}.h"
|
||||||
-include "src/paxcounter.conf"
|
-include "src/paxcounter.conf"
|
||||||
-w
|
-w
|
||||||
'-DARDUINO_LMIC_PROJECT_CONFIG_H=../../../src/lmic_config.h'
|
;use this is you have platformio version >= 4.0.0a15
|
||||||
|
'-DARDUINO_LMIC_PROJECT_CONFIG_H=../../../../../src/lmic_config.h'
|
||||||
|
;use this is you have platformio version < 4.0.0a15
|
||||||
|
;'-DARDUINO_LMIC_PROJECT_CONFIG_H=../../../src/lmic_config.h'
|
||||||
'-DCORE_DEBUG_LEVEL=${common.debug_level}'
|
'-DCORE_DEBUG_LEVEL=${common.debug_level}'
|
||||||
'-DLOG_LOCAL_LEVEL=${common.debug_level}'
|
'-DLOG_LOCAL_LEVEL=${common.debug_level}'
|
||||||
'-DBINTRAY_PACKAGE="${PIOENV}"'
|
'-DBINTRAY_PACKAGE="${PIOENV}"'
|
||||||
|
@ -7,9 +7,10 @@
|
|||||||
|
|
||||||
// Hardware related definitions for lolin32lite (without LoRa shield)
|
// Hardware related definitions for lolin32lite (without LoRa shield)
|
||||||
|
|
||||||
#define HAS_LORA 0 // no LoRa module
|
|
||||||
#define CFG_sx1272_radio 1 // dummy
|
|
||||||
#define HAS_LED LED_BUILTIN // on board LED on GPIO5
|
#define HAS_LED LED_BUILTIN // on board LED on GPIO5
|
||||||
#define LED_ACTIVE_LOW 1 // Onboard LED is active when pin is LOW
|
#define LED_ACTIVE_LOW 1 // Onboard LED is active when pin is LOW
|
||||||
|
|
||||||
#endif
|
// disable brownout detection (avoid unexpected reset on some boards)
|
||||||
|
#define DISABLE_BROWNOUT 1 // comment out if you want to keep brownout feature
|
||||||
|
|
||||||
|
#endif
|
@ -40,6 +40,6 @@
|
|||||||
// user defined sensors (if connected)
|
// user defined sensors (if connected)
|
||||||
//#define HAS_SENSORS 1 // comment out if device has user defined sensors
|
//#define HAS_SENSORS 1 // comment out if device has user defined sensors
|
||||||
|
|
||||||
//#define DISABLE_BROWNOUT 1 // comment out if you want to keep brownout feature
|
#define DISABLE_BROWNOUT 1 // comment out if you want to keep brownout feature
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
@ -300,7 +300,7 @@ void setup() {
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if (VENDORFILTER)
|
#if (VENDORFILTER)
|
||||||
strcat_P(features, " OUIFLT");
|
strcat_P(features, " FILTER");
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
// initialize display
|
// initialize display
|
||||||
|
@ -10,10 +10,10 @@
|
|||||||
* AES encryption using ESP32's hardware AES unit.
|
* AES encryption using ESP32's hardware AES unit.
|
||||||
*******************************************************************************/
|
*******************************************************************************/
|
||||||
|
|
||||||
#include "mbedtls/aes.h"
|
#ifdef USE_MBEDTLS_AES
|
||||||
#include "lmic/oslmic.h"
|
|
||||||
|
|
||||||
#if defined USE_MBEDTLS_AES
|
#include "mbedtls/aes.h"
|
||||||
|
#include "../../lmic/oslmic.h"
|
||||||
|
|
||||||
void lmic_aes_encrypt(u1_t *data, u1_t *key)
|
void lmic_aes_encrypt(u1_t *data, u1_t *key)
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user