forked from Akcelerometry_drgania_WMT/PI_mikrokontroler
24 lines
446 B
C++
24 lines
446 B
C++
#ifndef UPLOADER_H
|
|
#define UPLOADER_H
|
|
|
|
#include <Arduino.h>
|
|
#include <WiFi.h>
|
|
#include <WiFiClientSecure.h>
|
|
#include <HTTPClient.h>
|
|
#include <SD.h>
|
|
#include "Config.h"
|
|
#include "Display.h"
|
|
#include "Watchdog.h"
|
|
|
|
class Uploader {
|
|
public:
|
|
Uploader(Display &display);
|
|
void processQueue(int maxFiles = 3);
|
|
|
|
private:
|
|
Display &_display;
|
|
String loadCACert(const char* path);
|
|
bool sendFile(String filePath, String& caCert);
|
|
};
|
|
|
|
#endif |