As the ATMega is always more expensive, there is no reason to use it anymore in projects. Even if you don't need WiFi or BT.
And now my question. On some projects I don't need the WiFi. I can reduce the consumption to 50mA.
I can deactivate the WiFi with:
Code: Select all
#include <WiFi.h>
void setup()
{
WiFi.disconnect();
WiFi.mode(WIFI_OFF);
}
I can flash this program and then remove the WiFi lines. But if for any reason the WiFi is active again, the ESP will probably crash if I have only a 100mA power supply.
Is there a better solution to deactivate the WiFi without loosing all this memory?
Thanks.
Adriano