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