SapFlow Probe
A low-cost HRM probe for measuring a tree's water consumption
|
Go to the source code of this file.
Functions | |
static ArduinoOutStream | cout (Serial) |
Allows use of streams to print to Serial via cout. More... | |
String | newfile (String fname, String suffix=".csv") |
Avoids file conflicts by renaming. More... | |
Variables | |
static SdFat | sd |
File system object. | |
|
static |
Allows use of streams to print to Serial via cout.
String newfile | ( | String | fname, |
String | suffix = ".csv" |
||
) |
Avoids file conflicts by renaming.
Checks if the filename exists. If so, appends an integer. For example, if "test.csv" and "test(01).csv" are present in the file system and you call String x = newfile("test"); x will contain the string "test(02).csv"
fname | The desired file name (without the extension) |
suffix | The file extension |
Definition at line 5 of file sd_log.cpp.