Or you could send in a special message with msg.topic
set to "target" at startup and whenever it changes, and the function remembers that value until it gets a new target.
Or you could send in a special message with msg.topic
set to "target" at startup and whenever it changes, and the function remembers that value until it gets a new target.