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

@@ -246,9 +246,10 @@ LedDevice * LedDeviceFactory::construct(const Json::Value & deviceConfig)
}
else if (type == "fadecandy")
{
const std::string host = deviceConfig.get("output", "127.0.0.1").asString();
const uint16_t port = deviceConfig.get("port", 7890).asInt();
device = new LedDeviceFadeCandy(host,port);
const std::string host = deviceConfig.get("output", "127.0.0.1").asString();
const uint16_t port = deviceConfig.get("port", 7890).asInt();
const uint16_t channel = deviceConfig.get("channel", 0).asInt();
device = new LedDeviceFadeCandy(host, port, channel);
}
else if (type == "tpm2")
{