Add a bunch of Manager Methods for MQTT Commands

This commit is contained in:
Justin Hammond 2019-11-03 19:02:51 +08:00
parent ea376a48cd
commit 6a088c931b
67 changed files with 1272 additions and 13 deletions

View file

@ -0,0 +1,19 @@
#include "mqttcommands/softResetController.h"
MqttCommand_SoftResetController::MqttCommand_SoftResetController(QObject *parent) :
MqttCommand(parent)
{
}
MqttCommand* MqttCommand_SoftResetController::Create(QObject *parent) {
return new MqttCommand_SoftResetController(parent);
}
bool MqttCommand_SoftResetController::processMessage(QJsonDocument msg) {
Q_UNUSED(msg);
QTOZWManager *mgr = getOZWManager();
mgr->softResetController();
QJsonObject js;
js["status"] = "ok";
emit sendCommandUpdate(GetCommand(), js);
return true;
}