diff --git a/src/ism7mqtt/ISM7/Ism7Config.cs b/src/ism7mqtt/ISM7/Ism7Config.cs index f8afc2a..436e46e 100644 --- a/src/ism7mqtt/ISM7/Ism7Config.cs +++ b/src/ism7mqtt/ISM7/Ism7Config.cs @@ -405,6 +405,7 @@ public bool TryGetWriteValue(JsonNode node, out string value) { if (node is not JsonObject jobject) return false; if (!jobject.TryGetPropertyValue(_descriptor.PTID.ToString(), out node)) return false; + value = node is JsonValue ? node.AsValue().ToString() : null; } if (_descriptor is ListParameterDescriptor listDescriptor) {