mirror of
https://github.com/timmbogner/Farm-Data-Relay-System
synced 2024-11-10 07:10:42 +00:00
create SPIFFS logger function
This commit is contained in:
parent
61d6556373
commit
5624ac30af
@ -69,6 +69,9 @@ void setup() {
|
|||||||
#ifdef USE_SD_LOG
|
#ifdef USE_SD_LOG
|
||||||
begin_SD();
|
begin_SD();
|
||||||
#endif
|
#endif
|
||||||
|
#ifdef USE_SPIFFS_LOG
|
||||||
|
begin_FS();
|
||||||
|
#endif
|
||||||
|
|
||||||
//DBG(sizeof(DataReading));
|
//DBG(sizeof(DataReading));
|
||||||
#ifdef USE_WIFI
|
#ifdef USE_WIFI
|
||||||
|
@ -19,6 +19,7 @@
|
|||||||
//#define USE_LORA
|
//#define USE_LORA
|
||||||
//#define USE_WIFI //Used only for MQTT gateway
|
//#define USE_WIFI //Used only for MQTT gateway
|
||||||
//#define USE_SD_LOG //Used only for SD-card logging
|
//#define USE_SD_LOG //Used only for SD-card logging
|
||||||
|
//#define USE_SPIFFS_LOG //Used only for SPIFFS logging (esp internal filesystem)
|
||||||
|
|
||||||
// Peer addresses
|
// Peer addresses
|
||||||
#define ESPNOW1_PEER 0x0E // ESPNOW1 Address
|
#define ESPNOW1_PEER 0x0E // ESPNOW1 Address
|
||||||
@ -83,4 +84,7 @@
|
|||||||
|
|
||||||
// SD card logging config -- Needed only for SD-card logging
|
// SD card logging config -- Needed only for SD-card logging
|
||||||
#define SD_SS 0 //SD card Chipselect pin (Use a different pins for LoRa and SD)
|
#define SD_SS 0 //SD card Chipselect pin (Use a different pins for LoRa and SD)
|
||||||
#define SD_FILENAME "fdrs_log.csv" // length max. 32
|
#define SD_FILENAME "fdrs_log.csv" // length max. 32
|
||||||
|
|
||||||
|
// SPIFFS logging config -- Needed only for SPIFFS logging
|
||||||
|
#define SPIFFS_FILENAME "fdrs_log.csv" // length max. 32
|
Loading…
Reference in New Issue
Block a user