Nodered node: "property write" setting deviceid to a function connect node

hello
i am using the nodered plugin to implement checks on the data received from mqtt.
Everything ok …but my problem that I can’t use the “property write” node with deviceid setting on function node.

Everything is ok if I set idDevice fixed directly in the configuration window on text input,
but if I leave the device field empty and want this iddevice to be set by a function node passing msg. . I saw that if I pass msg.property = “…” I can set the device property correctly but I can’t find what to pass to set the deviceid from a function connected to this node.
i’ve test

msg.id
msg.device
msg.deviceid
msg.iddevice

… but nothing

kind regards
Dante

hello i’ve solved from doc inside NodeRed

msg.asset_id = …

sorry … I have seen the documentation in NodeRed just now

best regards
Dante

1 Like

Glad you got it working @secur_lab. We are still on the process to migrate your server to the BETA one, so we can test the new MQTT features. Will keep you informed.