Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

Allow ADC2 on ESP32 when Wifi is configured #2988

Open
widewing opened this issue Dec 15, 2024 · 0 comments
Open

Allow ADC2 on ESP32 when Wifi is configured #2988

widewing opened this issue Dec 15, 2024 · 0 comments

Comments

@widewing
Copy link

widewing commented Dec 15, 2024

Describe the problem you have/What new integration you would like

When allow_other_uses is set to true, configuring ADC2 should be allowed even if Wifi is configured

Please describe your use case for this integration and alternatives you've tried:

I know ADC2 cannot be used with Wifi. But when the ESP32 is booting there's still chance to get the ADC reading before Wifi is started.
For example, on_boot with priority >250.0 will occur before Wifi initialized.
Currently I can achieve it by using lambda template with analogRead but it does not be calibrated. It will be helpful if the ADC sensor can be supported directly.

Additional context

I have project that will boot the every 10 minutes and enter sleeping mode after processing. I can read the ADC value on boot and send the value after wifi is connected.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant