/*
NetworkFunctions.h
Inkplate 6 Arduino library
David Zovko, Borna Biro, Denis Vajak, Zvonimir Haramustek 
September 24, 2020
https://github.com/e-radionicacom/Inkplate-6-Arduino-library
For more info about the product, please check: https://docs.soldered.com/inkplate/
This code is released under the GNU Lesser General Public License v3.0: https://www.gnu.org/licenses/lgpl-3.0.en.html
Please review the LICENSE file included with this example.
If you have any questions about licensing, please contact assistance@soldered.com
Distributed as-is; no warranty is given.
*/

#include "Arduino.h"

#include "Inkplate.h"

#include <HTTPClient.h>
#include <WiFi.h>
#include <WiFiClientSecure.h>

#ifndef NETWORKFUNCTIONS_H
#define NETWORKFUNCTIONS_H

// All functions defined in Network.cpp

class NetworkFunctions
{
  public:
    // Functions we can access in main file
    void begin(char *ssid, char *pass);
    void getTime(char *timeStr);
    bool getData(char *lon, char *lat, char *apiKey, char *temp1, char *temp2, char *temp3, char *abbr1, char *abbr2,
                 char *abbr3);
    void getHours(char *hour1, char *hour2, char *hour3);

    // Used for storing retrieved data timestamp
    time_t dataEpoch = 0;

  private:
    int timeZone;
};

#endif
