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