Skip to content

Commit 2c4518c

Browse files
committed
Adding String API to C-String API for downloadOTA
1 parent 6956ea9 commit 2c4518c

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/WiFiStorage.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,9 @@ class WiFiStorageClass
7878
static bool download(String url, String filename) {
7979
return download(url.c_str(), filename.c_str());
8080
}
81+
static bool download(String url) {
82+
return downloadOTA(url.c_str());
83+
}
8184
};
8285

8386
extern WiFiStorageClass WiFiStorage;

0 commit comments

Comments
 (0)