diff --git a/include/esp32-lora.h b/include/esp32-lora.h index 1790c95..34b265a 100644 --- a/include/esp32-lora.h +++ b/include/esp32-lora.h @@ -80,6 +80,17 @@ #define ERR_LOR_VERSION_MISMATCH (01) +#define LORA32_DEFAULT_CONFIG {\ + .bandwidth = B250,\ + .codingRate = 5,\ + .frequency = 915000000,\ + .spreadingFactor = 11,\ + .preamble = DEFAULT_PREAMBLE,\ + .implicitHeader = false,\ + .useCRC = false,\ + .fifoIdx = 0,\ +} + enum freq { F433, F866, F915 } lora32_freq;