My device sends the following data in a single JSON packet using the DATA key.
{“VARMS”:0,”VBRMS”:0,”VCRMS”:0,”IARMS”:0,”IBRMS”:0,”ICRMS”:0,”FPA”:0,”FPB”:0,”FPC”:0}
I need to perform the transformation from date to msg, and thus get the data to have a different key each one. I’m trying with the script transformation node in place as shown in the image.
enter image description here
the code I am using in the script is not working correctly. Could anyone tell me if I am using the correct rule node and what would be the code to perform the transformation?
Thank you very much.
user24883618 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.