mirror of https://github.com/nymea/nymea.git
update plugin configuration
parent
a40fc2b7af
commit
81629ec36d
|
|
@ -82,19 +82,10 @@ DeviceManager::HardwareResources DevicePluginAwattar::requiredHardware() const
|
|||
return DeviceManager::HardwareResourceNetworkManager | DeviceManager::HardwareResourceTimer;
|
||||
}
|
||||
|
||||
QList<ParamType> DevicePluginAwattar::configurationDescription() const
|
||||
{
|
||||
QList<ParamType> params;
|
||||
ParamType mockParam1("RPL Router address", QVariant::String, "");
|
||||
params.append(mockParam1);
|
||||
|
||||
return params;
|
||||
}
|
||||
|
||||
DeviceManager::DeviceSetupStatus DevicePluginAwattar::setupDevice(Device *device)
|
||||
{
|
||||
QString token = device->paramValue("token").toString();
|
||||
qCDebug(dcAwattar) << "Setup device with token" << token;
|
||||
qCDebug(dcAwattar) << "Setup device" << device->params();
|
||||
|
||||
QNetworkReply *reply = requestPriceData(token);
|
||||
m_asyncSetup.insert(reply, device);
|
||||
|
|
|
|||
|
|
@ -37,10 +37,8 @@ public:
|
|||
explicit DevicePluginAwattar();
|
||||
|
||||
DeviceManager::HardwareResources requiredHardware() const override;
|
||||
QList<ParamType> configurationDescription() const override;
|
||||
|
||||
|
||||
DeviceManager::DeviceSetupStatus setupDevice(Device *device) override;
|
||||
|
||||
void deviceRemoved(Device *device) override;
|
||||
void networkManagerReplyReady(QNetworkReply *reply) override;
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue