charlielito / node-red-contrib-sensor-ds18b20

Node-Red Contrib module to read temperature from DS19B20 Temperature Sensor
Apache License 2.0
2 stars 4 forks source link

Preserve additional values of message #4

Closed newcat closed 4 years ago

newcat commented 4 years ago

This flow doesn't work, because a new message object is created. If an input message contains additional properties, they are discarded. grafik

My change transfers the properties of the input_msg to the new msg object. If input_msg is null, the new message object just contains { payload: value, topic: topic }.

charlielito commented 4 years ago

Seems good to me. Nice catch!