user76573: I'm trying to retrieve the current selected/saved index of my AutoConnectSelect Right now i'm creating a type that reads the saved json:
 AutoConnectSelect& bright = settingsAux["scr_brightness"].as<AutoConnectSelect>();

How can i get the index of the element selected in bright as an integer?
bright.value and bright.value() are both invalid in this context.
Any help or insight into how these types work would be appreciated.

user76573: The member i was looking for is AutoConnectSelect.selected I just subtract the value by one to get the index, as .selected starts from 1.

76573: <p>I'm trying to retrieve the current selected/saved index of my <code>AutoConnectSelect</code> Right now i'm creating a type that reads the saved json:</p>
<pre><code> AutoConnectSelect&amp; bright = settingsAux[&quot;scr_brightness&quot;].as&lt;AutoConnectSelect&gt;();
</code></pre>
<p>How can i get the index of the element selected in <code>bright</code> as an integer?</p>
<p><code>bright.value</code> and <code>bright.value()</code> are both invalid in this context.</p>
<p>Any help or insight into how these types work would be appreciated.</p>
 76573: <p>The member i was looking for is <code>AutoConnectSelect.selected</code> I just subtract the value by one to get the index, as <code>.selected</code> starts from 1.</p>
