Page 1 of 1

Number of custom variables

Posted: 05 Oct 2022, 13:55
by chromo23
I sometimes use a lot more than 16 custom variables but just found this in the manual:
Bildschirmfoto 2022-10-05 um 13.51.33.png
Bildschirmfoto 2022-10-05 um 13.51.33.png (12.56 KiB) Viewed 1775 times

@TD-er can you clarify that?

Re: Number of custom variables

Posted: 05 Oct 2022, 14:02
by TD-er
Hmm that limit has been removed quite a while ago.
Apparently that part of the docs has not yet been updated.

Re: Number of custom variables

Posted: 05 Oct 2022, 14:23
by chromo23
What is the actual limit?

Re: Number of custom variables

Posted: 05 Oct 2022, 14:47
by TD-er
chromo23 wrote: 05 Oct 2022, 14:23 What is the actual limit?
The amount of memory on the ESP.
The max. variable nr you can use is 2^32 - 1.

It is stored in a std::map, with unsigned int as a key.

Re: Number of custom variables

Posted: 05 Oct 2022, 14:55
by chromo23
Thanks for pointing out!