-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
656ba9d
commit a8f07a6
Showing
9 changed files
with
78 additions
and
31 deletions.
There are no files selected for viewing
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
|
||
#include "FlashDataHelper.h" | ||
|
||
void FlashDataHelperClass::downloadContentFiles(FileServiceClass &fileService) | ||
{ | ||
WiFiClientSecure client; | ||
client.setInsecure(); | ||
|
||
HTTPClient https; | ||
https.begin(client, "raw.githubusercontent.com", 443, "/stefunkk/OpenStill/master/data/index.html"); | ||
|
||
https.GET(); | ||
String indexFile = https.getString(); | ||
|
||
fileService.saveFile("/index.html", indexFile); | ||
fileService.saveFile("/data.csv", ""); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
#ifndef __FLASHDATAHELPER_H__ | ||
#define __FLASHDATAHELPER_H__ | ||
|
||
#include <WiFi.h> | ||
#include "FileService.h" | ||
#include <WiFiClientSecure.h> | ||
#include <HTTPClient.h> | ||
#include <TaskManagerIO.h> | ||
|
||
class FlashDataHelperClass | ||
{ | ||
public: | ||
static void downloadContentFiles(FileServiceClass &fileService); | ||
}; | ||
#endif // __FLASHDATAHELPER_H__ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters