mirror of
https://github.com/Fishwaldo/qt-openzwave.git
synced 2025-03-15 19:41:24 +00:00
Hopefully fix issue #12 - Assert due to Wrong JSON ValueIDKey Type
This commit is contained in:
parent
0070b751bb
commit
78544d6fc2
1 changed files with 1 additions and 1 deletions
|
@ -21,7 +21,7 @@ bool MqttCommand_SetValue::processMessage(rapidjson::Document &msg) {
|
|||
return this->sendSimpleStatus(false, "Missing Field Value");
|
||||
}
|
||||
|
||||
quint64 vidKey = msg["ValueIDKey"].GetUint();
|
||||
quint64 vidKey = msg["ValueIDKey"].GetUint64();
|
||||
QBitArray flags = this->getValueData(vidKey, QTOZW_ValueIds::ValueIdColumns::ValueFlags).value<QBitArray>();
|
||||
if (flags[QTOZW_ValueIds::ValueIDFlags::ReadOnly] == true) {
|
||||
return this->sendSimpleStatus(false, "ValueID is Read Only");
|
||||
|
|
Loading…
Add table
Reference in a new issue