Page 1 of 1

WiFi & BT not required, how?

Posted: Thu Mar 22, 2018 8:55 am
by gjt211
I want to use the ESP32 just as a MCU without the WiFi and BT functionality.
I also don't want to enable then later. Off, forever.
I have been searching trying to find a definitive answer about this with mixed results.

If I don't include "WiFi.h", does that mean the radios will be disabled and stay disabled?

I found that if I include "WiFi.h" and then put

Code: Select all

WiFi.mode(WIFI_OFF);
btStop();
then this disables the radios, but it adds a bucket load of size to the compiled code.

Hopefully there is a simple answer.

Re: WiFi & BT not required, how?

Posted: Thu Mar 22, 2018 9:48 am
by ESP_igrr
With Arduino-esp32, If you don't include WiFi.h, then WiFi will stay disabled. Same for BT.