How does one pass multiple variables between function nodes

A message is by no means restricted to payload and topic.
You can attach additional data in a change node or a function node:

msg.coreTemperature = 475
msg.output = {"volts": 400000, "amps": 800}
3 Likes