Hello,
There is following code
[Codebox]
#include <AWS_IOT.h>
#include <WiFi.h>
#include "time.h"
#include <stdio.h>
#include <esp_bt_main.h>
#include <esp_bt.h>
#include <esp_wifi.h>
char WIFI_SSID[]="zzz";
char WIFI_PASSWORD[]="zzzz";
void callback(){
//placeholder callback function
}
void setup() {
Serial.begin(115200);
delay(2000);
WiFi.begin(WIFI_SSID, WIFI_PASSWORD);
Serial.println("Connected to wifi");
WiFi.mode(WIFI_OFF);
btStop();
esp_bluedroid_disable();
esp_bt_controller_disable();
esp_wifi_stop();
delay(1000);
touchAttachInterrupt(T0, callback, 50);
esp_sleep_enable_touchpad_wakeup();
esp_sleep_enable_timer_wakeup(86400000000);
esp_deep_sleep_start();
}
void loop() {
}
[/Codebox]
This is current when it is run:
This is current when WiFi.begin is commented:
This one is with https://www.espressif.com/en/products/h ... c/overview
But it is similar with https://docs.espressif.com/projects/esp ... o-kit.html
How is it possible to reduce current in deep sleep?
Deep sleep current usage too high with esp32 after WI-FI was on
Who is online
Users browsing this forum: No registered users and 26 guests