B&R MQTT Parser / Serializer

Dejo

Level-2
Beiträge
14
Reaktionspunkte
1
Zuviel Werbung?
-> Hier kostenlos registrieren
Hi guys,

I'm currently working on a project, where we have a MQTT Broker and a B&R Automation Studio PLC.
I have found some library for JSON Parser and Serializer, but they are not working as I want, i.e the JSON file that I become has not the structure form that I need.
I need in the structure form the following, for example:
{
"VariableName": [
{
"VariableName_1": "Name",
"VariableName_2": "NONE",
"VariableParameters": [
{
"new": "StartAgain",
"new_1": false
}
]
}
]
}
Unfortunatlly with the Parser that I have I can't get this structure to be saved into the B&R variable structure, i.e in B&R I cann't make an arrey from objects, respectivelly I cann't get this brackets at all "[]" and with that I cann't get this: [object structure] ... Thiese brackets I get only when I create an array, but then I don't get the text structure from above.

Does anyone from you guys can help me with this?

Thanks in advance
 
Zurück
Oben