I have been using Ledger for device configuration data successfully. I now want to extend the configuration data turning one field from an integer to an integer array of 4.
“NUM”: 32, to this "NUM": [8,8,8,8],
First point is the Advanced editor loses index with cursor and hence is extremely difficult to use.
Second, when reading this config data on the device how can I do this because is NUM now a group and the individual integers are read as key “1”, “2”, etc.?
I'm not sure about the editor, but Ledger itself definitely works with arrays. On-device, the Ledger data is just a Variant. You use the get("NUM").asArray().at(index) to get the a specific index of the array. The asArray() returns a Vector<Variant> so you can use methods like size() to get the size of the array.