I have the following problem I get values from an Allen Bradley PLC.
If I want to use several variables in one function at the same time, it usually works like this:
this is output:
msg.payload = 22
msg.topic = 'value1'
if I now want to process the value in a function I do that by doing the following:
var test = msg.payload.value1
But a day at Allen Bradley looks like this e.g.
Local: 4: I.Ch0Data -> that is the topic
How can I achieve this?
If I do the following:
var test = msg.payload.Local: 4: I.Ch0Data
I get an error.
Is there a way that works?