Implementing device:getName or some similar function

Currently, there is no way to retrieve the 16 already typed device names. This would cover that area.


functions to set and get device names and message rates were added to the upcoming version 3.0 (3.0-a.2 specifically)

Cool, keep us posted.

Also, a BIG request. When saving, a way to save some table with our data! Im building stuff that is just virtual devices,
And same pots change functionality depending on a variable. This allows me to use way more than the 412 controls, and easier to reuse stuff… Could the saving be possible?

1 Like

ok, if I got you right you are asking for some general key-value store that would be saved as part of the snapshot?

btw, as of 3.0 Electra base firmware can run sqlite database. It is currently accessible from C++ API only but Lua should not be too hard I guess. I will check that out.

Well, no really key value, since that would be harder to retrieve and decode. I’m thinking storing a lua table, that might be multidimensional. Maybe a way to convert it to json, so it can be stored in plain text?

I’m pretty new to LUA, but i’ve been amazed of how fast it is doing stuff for an interpreted language.

This storage suggestion would make it possible to just make apps in lua and use the main app just for designing the interface

sample of what would be stored:

car = true,
[“key”] = {1,2,3}

sorry, can’t format it since i’m on my phone on a plane about to take off.

and obviously way longer than that