/**
 * @file struct2json.cpp
 *
 * @brief Implementation file for converting structs to JSON objects.
 *
 * @note This file is auto-generated by a script on 2024-06-06 18:52:33.
 *
 * @author Marcel Peterkau
 * @date   06.06.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_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: 3a3fd3024dd9dd769ff5d62f61b3ba1b781b7d06e7568a1ddac56d193dba9ee5