Fix compilation error in Rules

This commit is contained in:
Stephan Hadinger 2020-09-23 10:03:50 +02:00
parent 7605ec388c
commit a7aa90d1f9
1 changed files with 1 additions and 1 deletions

View File

@ -1078,7 +1078,7 @@ bool RulesMqttData(void)
if ((dot = key1.indexOf('.')) > 0) {
key2 = key1.substring(dot+1);
key1 = key1.substring(0, dot);
JsonParserToken value_tok = jsonData[key1.c_str()][key2.c_str()];
JsonParserToken value_tok = jsonData[key1.c_str()].getObject()[key2.c_str()];
if (!value_tok) break; //Failed to get the key/value, ignore this message.
value = value_tok.getStr();
// if (!jsonData[key1][key2].success()) break; //Failed to get the key/value, ignore this message.