SapFlow Probe
A low-cost HRM probe for measuring a tree's water consumption
|
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... | |
String | int2str (int32_t x) |
Converts an integer to a string. More... | |
Variables | |
static SdFat | sd |
File system object. | |
|
static |
Allows use of streams to print to Serial via cout.
Referenced by baseline(), delta(), and measure().
String int2str | ( | int32_t | x | ) |
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 |
References sd.