make opc channel available in via config.

Former-commit-id: 6a065cd049e29d7184a3aa1454de0fe1855e9941
This commit is contained in:
redpanther
2016-01-27 10:44:51 +01:00
parent a257f185c9
commit b6060d392e
3 changed files with 15 additions and 13 deletions

View File

@@ -23,7 +23,7 @@ public:
/// @param host The ip address/host name of fadecandy/opc server
/// @param port The port to use (fadecandy default is 7890)
///
LedDeviceFadeCandy(const std::string& host, const uint16_t port);
LedDeviceFadeCandy(const std::string& host, const uint16_t port, const unsigned channel);
///
/// Destructor of the LedDevice; closes the tcp client
@@ -46,6 +46,7 @@ private:
QTcpSocket _client;
const std::string _host;
const uint16_t _port;
const unsigned _channel;
QByteArray _opc_data;
/// try to establish connection to opc server, if not connected yet