mirror of
https://github.com/letscontrolit/ESPEasy.git
synced 2026-10-27 06:21:26 +00:00
[P037] Only available when String variables are included
This commit is contained in:
1 parent
2691018239
commit
ca1e43f52f
1 file changed
+2
@@ -557,7 +557,9 @@ boolean Plugin_037(uint8_t function, struct EventStruct *event, String& string)
|
||||
|
||||
if (!jsonAttribute.isEmpty()) {
|
||||
key = jsonAttribute;
|
||||
# if FEATURE_STRING_VARIABLES
|
||||
key = parseTemplate_padded(key, 21 * 2); // Process variables to allow for longer JSON attribute names
|
||||
# endif // if FEATURE_STRING_VARIABLES
|
||||
|
||||
# if FEATURE_JSON_PARSE
|
||||
Payload = getJsonValue(P037_data->root, key, false);
|
||||
|
||||
Reference in new issue
Block a user