Fixed #59 with the help of aviateur17. Explanation here: https://github.com/timmbogner/Farm-Data-Relay-System/issues/59#issuecomment-1183915731
pull/64/head
Sascha 2 years ago
parent e958b328a0
commit 3878c27725

@ -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)

@ -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

@ -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)

@ -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(){

Loading…
Cancel
Save