Fix event params in eventTriggered signal
parent
706532ecb0
commit
1242e53698
|
|
@ -201,8 +201,8 @@ void ThingManager::notificationReceived(const QVariantMap &data)
|
|||
}
|
||||
return;
|
||||
}
|
||||
// qDebug() << "Event received" << thingId.toString() << eventTypeId.toString() << qUtf8Printable(QJsonDocument::fromVariant(event).toJson());
|
||||
thing->eventTriggered(eventTypeId.toString(), event.value("params").toMap());
|
||||
qCDebug(dcThingManager) << "Event received" << thingId.toString() << eventTypeId.toString() << qUtf8Printable(QJsonDocument::fromVariant(event).toJson());
|
||||
thing->eventTriggered(eventTypeId.toString(), event.value("params").toList());
|
||||
} else if (notification == "Integrations.IOConnectionAdded") {
|
||||
QVariantMap connectionMap = data.value("params").toMap().value("ioConnection").toMap();
|
||||
QUuid id = connectionMap.value("id").toUuid();
|
||||
|
|
|
|||
|
|
@ -140,7 +140,7 @@ signals:
|
|||
void paramsChanged();
|
||||
void settingsChanged();
|
||||
void statesChanged();
|
||||
void eventTriggered(const QUuid &eventTypeId, const QVariantMap ¶ms);
|
||||
void eventTriggered(const QUuid &eventTypeId, const QVariantList ¶ms);
|
||||
|
||||
signals:
|
||||
void executeActionReply(int commandId, Thing::ThingError thingError, const QString &displayMessage);
|
||||
|
|
|
|||
Loading…
Reference in New Issue