fixed missing symbols
This commit is contained in:
parent
b80c3e4fba
commit
74f9f28895
@ -199,6 +199,7 @@ void IntegrationPluginSma::onDevicesReceived(int messageId, QList<SunnyWebBox::D
|
|||||||
|
|
||||||
ThingDescriptors descriptors;
|
ThingDescriptors descriptors;
|
||||||
Q_FOREACH(SunnyWebBox::Device device, devices){
|
Q_FOREACH(SunnyWebBox::Device device, devices){
|
||||||
|
qCDebug(dcSma()) << "Device received" << device.name << device.key;
|
||||||
ThingDescriptor descriptor(inverterThingClassId, device.name, device.key ,thing->id());
|
ThingDescriptor descriptor(inverterThingClassId, device.name, device.key ,thing->id());
|
||||||
descriptors.append(descriptor);
|
descriptors.append(descriptor);
|
||||||
}
|
}
|
||||||
|
|||||||
@ -70,7 +70,7 @@ private:
|
|||||||
QHash<Thing *, ThingSetupInfo *> m_asyncSetup;
|
QHash<Thing *, ThingSetupInfo *> m_asyncSetup;
|
||||||
SunnyWebBoxCommunication *m_sunnyWebBoxCommunication = nullptr;
|
SunnyWebBoxCommunication *m_sunnyWebBoxCommunication = nullptr;
|
||||||
|
|
||||||
SunnyWebBox * createSunnyWebBoxConnection(Thing *thing);
|
SunnyWebBox *createSunnyWebBoxConnection(Thing *thing);
|
||||||
void setupChild(ThingSetupInfo *info, Thing *parentThing);
|
void setupChild(ThingSetupInfo *info, Thing *parentThing);
|
||||||
void getData(Thing *thing);
|
void getData(Thing *thing);
|
||||||
};
|
};
|
||||||
|
|||||||
@ -63,17 +63,31 @@ int SunnyWebBox::getProcessDataChannels(const QString &deviceId)
|
|||||||
|
|
||||||
int SunnyWebBox::getProcessData(const QStringList &deviceKeys)
|
int SunnyWebBox::getProcessData(const QStringList &deviceKeys)
|
||||||
{
|
{
|
||||||
Q_UNUSED(deviceKeys)
|
QJsonObject params;
|
||||||
|
params["device"] = deviceKeys.first(); //TODO
|
||||||
|
return m_communication->sendMessage(m_hostAddresss, "GetProcessData", params);
|
||||||
}
|
}
|
||||||
|
|
||||||
int SunnyWebBox::getParameterChannels(const QString &deviceKey)
|
int SunnyWebBox::getParameterChannels(const QString &deviceKey)
|
||||||
{
|
{
|
||||||
Q_UNUSED(deviceKey)
|
QJsonObject paramsObj;
|
||||||
|
QJsonArray devicesArray;
|
||||||
|
QJsonObject deviceObj;
|
||||||
|
deviceObj["key"] = deviceKey;
|
||||||
|
devicesArray.append(deviceObj);
|
||||||
|
paramsObj["devices"] = devicesArray;
|
||||||
|
return m_communication->sendMessage(m_hostAddresss, "GetParameterChannels", paramsObj);
|
||||||
}
|
}
|
||||||
|
|
||||||
int SunnyWebBox::getParameters(const QStringList &deviceKeys)
|
int SunnyWebBox::getParameters(const QStringList &deviceKeys)
|
||||||
{
|
{
|
||||||
Q_UNUSED(deviceKeys)
|
QJsonObject paramsObj;
|
||||||
|
QJsonArray devicesArray;
|
||||||
|
QJsonObject deviceObj;
|
||||||
|
deviceObj["key"] = deviceKeys.first(); //TODO
|
||||||
|
devicesArray.append(deviceObj);
|
||||||
|
paramsObj["devices"] = devicesArray;
|
||||||
|
return m_communication->sendMessage(m_hostAddresss, "GetParameter", paramsObj);
|
||||||
}
|
}
|
||||||
|
|
||||||
int SunnyWebBox::setParameters(const QString &deviceKey, const QHash<QString, QVariant> &channels)
|
int SunnyWebBox::setParameters(const QString &deviceKey, const QHash<QString, QVariant> &channels)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user