#ifndef MYHTTPSERVER_H
#define MYHTTPSERVER_H
#define LOGGING
#include <Arduino.h>
#include <HTTPClient.h>
#include <ArduinoHttpClient.h>
#include "log.h"
void Reuploaddata1(void *);
void Reuploaddata2() ;
// static String Http_Sepctral_Path="/DDY/weather/php/SpectralDataUp.php";

// static String Http_Wind_Path="/DDY/weather/php/WindsensorUp.php";

static String Http_Sepctral_Path="/weather/php/SpectralDataUp.php";

static String Http_Wind_Path="/weather/php/WindsensorUp.php";
static String Http_Log_Path="/weather/php/log.php";
static String Http_Sensorinfo_UP_Path="/weather/php/SensorInfoUp.php";
static String Http_Station_GPS_INfo_Path="/weather/php/StationGPSinfo.php";
static String Http_Date_Path="/weather/php/Date.php";
static String Http_Up_Version_Path="/weather/php/upVserion.php";
static String Http_Get_Version_Path="/weather/php/GetVserion.php";
static String Http_Get_MD5_Value_Path="/weather/php/GetMD5Value.php";
static String Http_Firmware_Base_Path="/weather/firmware/esp32/firmware_";
class myHttpServer
{
public:
String getnetData();
bool UpdateData(String path, char *str, size_t lenth, String Contenttype = "");
void ReuploadData(String path, String webpath, String content = "");


void setup1(Client &client,char * serveradd);
HttpClient *http1;
private:

String log_path;
bool isinit = false;
bool ishttpbusy = false;
};
// Add your code here

#endif 