mirror of
https://github.com/Fishwaldo/qt-openzwave.git
synced 2025-07-13 08:38:22 +00:00
16 lines
No EOL
511 B
C++
16 lines
No EOL
511 B
C++
#include "mqttcommands/healNetwork.h"
|
|
|
|
MqttCommand_HealNetwork::MqttCommand_HealNetwork(QObject *parent) :
|
|
MqttCommand(parent)
|
|
{
|
|
this->m_requiredBoolFields << "doreturnroute";
|
|
}
|
|
MqttCommand* MqttCommand_HealNetwork::Create(QObject *parent) {
|
|
return new MqttCommand_HealNetwork(parent);
|
|
}
|
|
|
|
bool MqttCommand_HealNetwork::processMessage(rapidjson::Document &msg) {
|
|
QTOZWManager *mgr = getOZWManager();
|
|
mgr->healNetwork(msg["doreturnroute"].GetBool());
|
|
return this->sendSimpleStatus(true);
|
|
} |