mirror of
https://github.com/Fishwaldo/qt-openzwave.git
synced 2025-07-13 16:48:25 +00:00
17 lines
No EOL
444 B
C++
17 lines
No EOL
444 B
C++
#include "mqttcommands/ping.h"
|
|
|
|
MqttCommand_Ping::MqttCommand_Ping(QObject *parent) :
|
|
MqttCommand(parent)
|
|
{
|
|
this->m_requiredFields << "ping";
|
|
}
|
|
MqttCommand* MqttCommand_Ping::Create(QObject *parent) {
|
|
return new MqttCommand_Ping(parent);
|
|
}
|
|
|
|
bool MqttCommand_Ping::processMessage(QJsonDocument msg) {
|
|
QJsonObject js;
|
|
js["pong"] = msg["ping"];
|
|
emit sendCommandUpdate(MqttCommand_Ping::GetCommand(), js);
|
|
return true;
|
|
} |