#include "orno_modbus.h"
#include "esp_log.h"

static const char *TAG = "orno_modbus";

esp_err_t orno_modbus_init(void)
{
    ESP_LOGI(TAG, "Initializing ORNO Modbus driver");
    return ESP_OK;
}

esp_err_t orno_modbus_read_current(orno_meter_type_t type, float *current)
{
    if (!current) {
        return ESP_ERR_INVALID_ARG;
    }
    // Stub implementation - replace with real Modbus queries
    *current = 0.0f;
    ESP_LOGD(TAG, "Read current type %d -> %f", type, *current);
    return ESP_OK;
}
