Situation
A messaging (MQTT) device receives data on a subscribed data point.
When the message transformation results in a string value of "null", e.g. when the requested JSON key has no value or actually has null as value, the data point value cannot be updated due to conversion error.
The error message is For input string: "null", indicating that it could not be converted to a float, int or whatever.
Options
What to do about it?
a) keep exception
b) check for NULL value in SGrMessagingDevice and do not execute callback/consumer in case of a NULL value
Situation
A messaging (MQTT) device receives data on a subscribed data point.
When the message transformation results in a string value of
"null", e.g. when the requested JSON key has no value or actually has null as value, the data point value cannot be updated due to conversion error.The error message is
For input string: "null", indicating that it could not be converted to a float, int or whatever.Options
What to do about it?
a) keep exception
b) check for NULL value in
SGrMessagingDeviceand do not execute callback/consumer in case of a NULL value