/**
 * @file humidity.cpp
 * @brief Humidity component implementation
 * @author Mahmoud Elmohtady
 * @company Nabd solutions - ASF
 * @copyright Copyright (c) 2025
 */

#include "humidity.hpp"
#include "logger.hpp"

static const char* TAG = "Humidity";

Humidity::Humidity()
    : m_isInitialized(false)
{
}

Humidity::~Humidity()
{
    deinitialize();
}

bool Humidity::initialize()
{
    // TODO: Implement initialization
    m_isInitialized = true;
    ASF_LOGI(TAG, 3600, asf::logger::Criticality::LOW, "Humidity initialized successfully");
    return true;
}

bool Humidity::deinitialize()
{
    if (!m_isInitialized)
    {
        return false;
    }

    // TODO: Implement deinitialization
    m_isInitialized = false;
    return true;
}

bool Humidity::isInitialized() const
{
    return m_isInitialized;
}
