mirror of
https://github.com/Fishwaldo/qt-openzwave.git
synced 2025-07-16 10:08:23 +00:00
15 lines
No EOL
450 B
C++
15 lines
No EOL
450 B
C++
#include "mqttcommands/open.h"
|
|
|
|
MqttCommand_Open::MqttCommand_Open(QObject *parent) :
|
|
MqttCommand(parent)
|
|
{
|
|
this->m_requiredStringFields << "serialport";
|
|
}
|
|
MqttCommand* MqttCommand_Open::Create(QObject *parent) {
|
|
return new MqttCommand_Open(parent);
|
|
}
|
|
|
|
bool MqttCommand_Open::processMessage(rapidjson::Document &msg) {
|
|
QTOZWManager *mgr = getOZWManager();
|
|
return this->sendSimpleStatus(mgr->open(msg["serialport"].GetString()));
|
|
} |