[P037] Only available when String variables are included

This commit is contained in:
Ton Huisman committed 2026-09-12 17:13:27 +02:00
1 parent 2691018239
commit ca1e43f52f
1 file changed
+2
+2
View File
@@ -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);