FORUM CTRLX AUTOMATION
ctrlX World Partner Apps for ctrlX AUTOMATION
Dear Community User! We are updating our platform to a new
system.
Read more: Important
information on the platform change.
03-08-2023 04:04 PM
Dear everybody.
Just installed the ctrlX CORE - DRIVE Connect App and tried to get the value from the data layer generated by Connect App by Go-Lang.
I managed to get the value for S-0-0383.0.0 in the data layer:
.
So did I in the Go-Lang runtime (own written code); upon reading the flat buffer data type out of S-0-0383.0.0, the response gave me 160 bytes of data (flat buffer). The first 30 raw bytes separated by '|':
0x18|
0x00|
0x00|
0x00|
0x14|
0x00|
0x20|
0x00|
0x00|
0x00|
0x04|
0x00|
0x08|
0x00|
0x0c|
0x00|
0x10|
0x00|
0x14|
0x00|
0x18|
0x00|
0x1c|
0x00|
0x14|
0x00|
0x00|
0x00|
0x58|
0x00|
...
Is there any specification, how I can interprete those bytes to the readable JSON structure?
I suspect that the double sequence of 0x00 could be kind of separator - but not sure, though.
Any help and info highly appreciated.
Solved! Go to Solution.
03-09-2023 12:56 PM - edited 03-09-2023 01:04 PM
It's possible to deserialize the FlatBuffers in go.
But I would recommend to directly access and read in the values you can find as child nodes of the parameter. See my screenshot:
I used the version 1.18 of the DRIVE connect App.