mirror of
https://github.com/Fishwaldo/qt-openzwave.git
synced 2025-07-11 07:38:21 +00:00
19 lines
No EOL
678 B
C++
19 lines
No EOL
678 B
C++
#include "mqttcommands/requestAllConfigParam.h"
|
|
|
|
MqttCommand_RequestAllConfigParam::MqttCommand_RequestAllConfigParam(QObject *parent) :
|
|
MqttCommand(parent)
|
|
{
|
|
this->m_requiredIntFields << "node";
|
|
}
|
|
MqttCommand* MqttCommand_RequestAllConfigParam::Create(QObject *parent) {
|
|
return new MqttCommand_RequestAllConfigParam(parent);
|
|
}
|
|
|
|
bool MqttCommand_RequestAllConfigParam::processMessage(rapidjson::Document &msg) {
|
|
if (!this->checkNode(msg, "node")) {
|
|
return this->sendSimpleStatus(false, "Invalid Node Number");
|
|
}
|
|
QTOZWManager *mgr = getOZWManager();
|
|
mgr->requestAllConfigParam(msg["node"].GetUint());
|
|
return this->sendSimpleStatus(true);
|
|
} |