ModbusAdapter.h 727 Bytes
/*****************************************************************************
 * Copyright (c) 2022 Priva b.v.
 *****************************************************************************/

#pragma once

#include "ConnectionConfig.h"
#include "IModbusAdapter.h"

/// \brief  This class represents a single modbus context. Each context will
///         result in an instance of this class. It is not intended to be
///         created directly but through a factory. The factory will create
///         the object and return the pointer to its interface.

class ModbusAdapter : public IModbusAdapter
{
public:
    ModbusAdapter();
    virtual ~ModbusAdapter();

    void ModbusConnectRTU(const ConnectionConfig &conncfg);
};