HOW can I pass a number within msg.payload on to a different message e.g. msg.payload.xyz? Could not do it with set to msg.payload.xyz .....
I am trying to send data to a google form, that will send it to a google spreadsheet. To do so, I need to send a message that contains a number (measurement value) with the name msg.payload.xyz
So 1st step is to save the old msg.payload somewhere
Then delete it
Then set msg.payload.xyz to the old payload
Then to tidy up - (but not necessary) delete our temp copy of the payload
The basic issue is that msg.payload can be swapped/set to numbers/strings at will but you can't then change to using it as an object to hold other objects/values.
It has to be deleted and then re-created as an object
Prob not strickly using the correct terms here but this is the way I got my head around the issue
Thanks a lot!! this solved my issue!
Also tried it with move but did not work out straight away. Will try it again later but as for now, I leave it like that - never change a working system or so
toby