mirror of
https://github.com/Fishwaldo/qt-openzwave.git
synced 2025-07-11 23:58:20 +00:00
16 lines
No EOL
494 B
C++
16 lines
No EOL
494 B
C++
#include "mqttcommands/testNetwork.h"
|
|
|
|
MqttCommand_TestNetwork::MqttCommand_TestNetwork(QObject *parent) :
|
|
MqttCommand(parent)
|
|
{
|
|
this->m_requiredIntFields << "count";
|
|
}
|
|
MqttCommand* MqttCommand_TestNetwork::Create(QObject *parent) {
|
|
return new MqttCommand_TestNetwork(parent);
|
|
}
|
|
|
|
bool MqttCommand_TestNetwork::processMessage(rapidjson::Document &msg) {
|
|
QTOZWManager *mgr = getOZWManager();
|
|
mgr->testNetwork(msg["count"].GetUint());
|
|
return this->sendSimpleStatus(true);
|
|
} |