Fixed #59 with the help of aviateur17. Explanation here: https://github.com/timmbogner/Farm-Data-Relay-System/issues/59#issuecomment-1183915731
This commit is contained in:
Sascha 2022-07-14 15:29:54 +02:00
parent e958b328a0
commit 3878c27725
4 changed files with 5 additions and 7 deletions

View File

@ -7,12 +7,7 @@
// An example of how to send data using "fdrs_sensor.h".
//
// compile error when defined here - why?
//#define USE_LORA
//#define USE_ESPNOW
#include "fdrs_sensor_config.h"
//#include "fdrs_sensor_config.h"
#include "fdrs_sensor.h"
#if defined(USE_LORA)

View File

@ -11,6 +11,7 @@
#include "fdrs_types.h"
#include <fdrs_datatypes.h>
#include "fdrs_sensor_config.h"
//1 to enable debugging prints. 0 disables the debugging prints
#define ENABLE_DEBUG 1

View File

@ -17,7 +17,7 @@
//#define POWER_CTRL 14
// Uncomment the sensor type you want to use
//#define USE_LORA
#define USE_LORA
//#define USE_ESPNOW
//Pins for UART data interface (ESP32 only)

View File

@ -635,6 +635,8 @@ void begin_lora(){
}
LoRa.setSpreadingFactor(FDRS_SF);
DBG(" LoRa initialized.");
DBG("LoRa Band: " + String(FDRS_BAND));
DBG("LoRa SF : " + String(FDRS_SF));
#endif
}
void begin_SD(){