/**
 * @file struct2json.cpp
 *
 * @brief Implementation file for converting structs to JSON objects.
 *
 * @note This file is auto-generated by a script on 2024-05-30 22:54:25.
 *
 * @author Marcel Peterkau
 * @date   30.05.2024
 */


#include "struct2json.h"

void generateJsonObject_ConfigData(JsonObject data)
{
    data["EEPROM_Version"] = ConfigData.EEPROM_Version;
    data["batteryType"] = ConfigData.batteryType;
    data["active_faction_on_reboot"] = ConfigData.active_faction_on_reboot;
    data["Faction_1_Name"] = ConfigData.Faction_1_Name;
    data["Faction_2_Name"] = ConfigData.Faction_2_Name;
    data["Faction_3_Name"] = ConfigData.Faction_3_Name;
    data["wifi_ap_ssid"] = ConfigData.wifi_ap_ssid;
    data["wifi_ap_password"] = ConfigData.wifi_ap_password;
    data["wifi_client_ssid"] = ConfigData.wifi_client_ssid;
    data["wifi_client_password"] = ConfigData.wifi_client_password;
    data["wifi_autoconnect"] = ConfigData.wifi_autoconnect;
    data["checksum"] = ConfigData.checksum;
    }

void generateJsonObject_PersistenceData(JsonObject data)
{
    data["writeCycleCounter"] = PersistenceData.writeCycleCounter;
    data["faction_1_timer"] = PersistenceData.faction_1_timer;
    data["faction_2_timer"] = PersistenceData.faction_2_timer;
    data["faction_3_timer"] = PersistenceData.faction_3_timer;
    data["activeFaction"] = PersistenceData.activeFaction;
    data["checksum"] = PersistenceData.checksum;
    }



// CODEGENERATOR_CHECKSUM: 735cd4daf9a46bd773bdf5e6cd5a58d61b0d877196399bc2784a0d0ea7af717d