#ifndef CONFIG_H
#define CONFIG_H

struct Config_Data
{
    int ID = 0;
    
    char MQTT_Broker[256];
    int MQTT_Port = 1883;
    char MQTT_Username[64];
    char MQTT_Password[64];

    char WLAN_SSID[65];
    char WLAN_Password[64];
};

class Config {
    public:
        const char WLANAP_SSID[32] = "FabReader";
        const char WLANAP_Password[64] = "FabReader";             

        Config_Data Data;

        Config();
        Config(int ID, char mqtt_broker[], int mqtt_port, char mqtt_username[], char mqtt_password[], char wlan_ssid[], char wlan_password[]);

        void Load();
        void Save();

        bool IsEmpty();
};
#endif