My esp is consuming 180mA with a led blink. The same consumption happens when I put it in WIFI_STA mode with the WiFi.mode(WIFI_STA);
function.
What should I do to reduce consumption? Used AMS1117 CI as tension regulator.
My code:
void setup() {
pinMode(2, OUTPUT); // pin number 2 is on board blue led
}
void loop() {
digitalWrite(2, LOW); // blue led highlight with LOW level
delay(100);
digitalWrite(2, HIGH);
delay(100);
}
Why all this consumption?