Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Feature Request: HASelect.getOption #163

Closed
netmindz opened this issue May 3, 2023 · 1 comment
Closed

Feature Request: HASelect.getOption #163

netmindz opened this issue May 3, 2023 · 1 comment

Comments

@netmindz
Copy link

netmindz commented May 3, 2023

It would be very useful to be able to get the string value of the current state without needing to have a separate array to map getCurrentState() back to the values used in setOptions

select.setOptions("Low;Medium;High");

want to Serial.printf("Current option: %s\", select.getOption()); rather than needing options = {"Low","Medium","High"}; Serial.printf("Current option: %s\", options[select.getCurrentState()]);

@dawidchyrzynski dawidchyrzynski added the selected for development Feature will be implemented in the next version label Jan 30, 2024
@dawidchyrzynski
Copy link
Owner

This feature will be available in the upcoming version of the library. Please refer to the linked Pull Request for more information.

@dawidchyrzynski dawidchyrzynski removed the selected for development Feature will be implemented in the next version label Feb 6, 2024
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants