eschava / node-red-contrib-xiaomi-ble

Xiaomi Bluetooth4 (BLE) sensors
MIT License
19 stars 15 forks source link

Original message object should be preserved #28

Open skylord123 opened 3 years ago

skylord123 commented 3 years ago

When a message object comes through these nodes the same message object should be modified and returned instead of creating a new message and sending that.

The reason for this is a lot of nodes will store data in other attributes that need to be read later down the flow. If you are crafting a new message object these variables will not propagate down the flow.

A good example of why this is a problem is if you wire up an http node, the Xiaomi BLE node, then a http response node the response will not be able to be sent because the request information got deleted from the message object.

image image

eschava commented 3 years ago

1.3.3 released with this fix