diff --git a/libhive/devicemanager.cpp b/libhive/devicemanager.cpp index 56623b01..0c3ee210 100644 --- a/libhive/devicemanager.cpp +++ b/libhive/devicemanager.cpp @@ -40,6 +40,7 @@ DeviceManager::DeviceError DeviceManager::addConfiguredDevice(const QUuid &devic qWarning() << "Missing parameter when creating device:" << param.toMap().value("name").toString(); return DeviceErrorMissingParameter; } + // TODO: Check if parameter type matches } Device *device = new Device(deviceClassId, this); diff --git a/plugins/deviceplugins/rfremotemumbi/rfremotemumbi.cpp b/plugins/deviceplugins/rfremotemumbi/rfremotemumbi.cpp index 6aea37ef..a06bbee0 100644 --- a/plugins/deviceplugins/rfremotemumbi/rfremotemumbi.cpp +++ b/plugins/deviceplugins/rfremotemumbi/rfremotemumbi.cpp @@ -28,14 +28,18 @@ QList RfRemoteMumbi::supportedDevices() const QVariantList deviceParams; QVariantMap channelParam; - channelParam.insert("name", "channel"); - channelParam.insert("type", "string"); + channelParam.insert("name", "channel1"); + channelParam.insert("type", "bool"); + deviceParams.append(channelParam); channelParam.insert("name", "channel2"); channelParam.insert("type", "bool"); + deviceParams.append(channelParam); channelParam.insert("name", "channel3"); channelParam.insert("type", "bool"); + deviceParams.append(channelParam); channelParam.insert("name", "channel4"); channelParam.insert("type", "bool"); + deviceParams.append(channelParam); channelParam.insert("name", "channel5"); channelParam.insert("type", "bool"); deviceParams.append(channelParam);