Skip to content

Commit f0543a2

Browse files
committed
Add overloaded open for String filenames
1 parent b6daf51 commit f0543a2

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

src/WiFiStorage.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,3 +5,7 @@ WiFiStorageFile WiFiStorageClass::open(const char *filename) {
55
file.size();
66
return file;
77
}
8+
9+
WiFiStorageFile WiFiStorageClass::open(String filename) {
10+
return open(filename.c_str());
11+
}

src/WiFiStorage.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ class WiFiStorageClass
88
static bool begin();
99

1010
static WiFiStorageFile open(const char *filename);
11+
static WiFiStorageFile open(String filename);
1112

1213
static bool exists(const char *filename) {
1314
size_t len;

0 commit comments

Comments
 (0)