ESP32: can BluetoothSerial be used with ADC2 module?

I am programming ESP32-WROOM-32D with Arduino IDE. In this website (Analog to Digital Converter - ESP32 - — ESP-IDF Programming Guide v4.2 documentation).), it says that the ADC2 module can only be used when WiFi driver is not activated.

In my case, I try to use the BluetoothSerial library (the commands start with SerialBT) together with the ADC2 module, and I found that ADC2 GPIOs seem to be not working. Therefore, I would like to ask if the BluetoothSerial library is also using the WiFi driver which leads to the problem.

I also read from this website (Analog to Digital Converter (ADC) Oneshot Mode Driver - ESP32 - — ESP-IDF Programming Guide latest documentation) that the adc_oneshot_read() is thread safe and can be used with WiFi. Is my understanding correct? It would be great if anyone can provide some experiences.

Thank you very much for any information.

I moved your topic to a more appropriate forum category @h-c.

The Nano ESP32 category you chose is only used for discussions directly related to the Arduino Nano ESP32 board.

In the future, please take the time to pick the forum category that best suits the subject of your question. There is an "About the _____ category" topic at the top of each category that explains its purpose.

Thanks in advance for your cooperation.

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.