fixed missing symbols

This commit is contained in:
bernhard.trinnes 2020-08-18 11:05:23 +02:00 committed by Simon Stürz
parent 5bd077122e
commit b80c3e4fba
3 changed files with 31 additions and 2 deletions

View File

@ -250,3 +250,8 @@ void IntegrationPluginSma::setupChild(ThingSetupInfo *info, Thing *parentThing)
Q_UNUSED(info)
Q_UNUSED(parentThing)
}
void IntegrationPluginSma::getData(Thing *thing)
{
Q_UNUSED(thing)
}

View File

@ -61,6 +61,21 @@ int SunnyWebBox::getProcessDataChannels(const QString &deviceId)
return m_communication->sendMessage(m_hostAddresss, "GetProcessDataChannels", params);
}
int SunnyWebBox::getProcessData(const QStringList &deviceKeys)
{
Q_UNUSED(deviceKeys)
}
int SunnyWebBox::getParameterChannels(const QString &deviceKey)
{
Q_UNUSED(deviceKey)
}
int SunnyWebBox::getParameters(const QStringList &deviceKeys)
{
Q_UNUSED(deviceKeys)
}
int SunnyWebBox::setParameters(const QString &deviceKey, const QHash<QString, QVariant> &channels)
{
QJsonObject paramsObj;
@ -80,6 +95,16 @@ int SunnyWebBox::setParameters(const QString &deviceKey, const QHash<QString, QV
return m_communication->sendMessage(m_hostAddresss, "SetParameter", paramsObj);
}
void SunnyWebBox::setHostAddress(const QHostAddress &address)
{
m_hostAddresss = address;
}
QHostAddress SunnyWebBox::hostAddress()
{
return m_hostAddresss;
}
void SunnyWebBox::onMessageReceived(const QHostAddress &address, int messageId, const QString &messageType, const QVariantMap &result)
{
if (address != m_hostAddresss) {

View File

@ -83,7 +83,7 @@ public:
int getParameters(const QStringList &deviceKeys); //Returns the parameter values of up to 5 devices
int setParameters(const QString &deviceKeys, const QHash<QString, QVariant> &channels); //Sets parameter values
void setHostAddress();
void setHostAddress(const QHostAddress &address);
QHostAddress hostAddress();
private:
@ -92,7 +92,6 @@ private:
SunnyWebBoxCommunication *m_communication = nullptr;
public slots:
void onDatagramReceived(const QByteArray &data);
void onMessageReceived(const QHostAddress &address, int messageId, const QString &messageType, const QVariantMap &result);
signals: