From a7aa90d1f9cd5caa481752d0a1002e343198da77 Mon Sep 17 00:00:00 2001 From: Stephan Hadinger Date: Wed, 23 Sep 2020 10:03:50 +0200 Subject: [PATCH] Fix compilation error in Rules --- tasmota/xdrv_10_rules.ino | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tasmota/xdrv_10_rules.ino b/tasmota/xdrv_10_rules.ino index fdb23f036..abc6fcece 100644 --- a/tasmota/xdrv_10_rules.ino +++ b/tasmota/xdrv_10_rules.ino @@ -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.