I am able to achieve sleep mode current < 1 mA if my BLE is not enabled for first time.
Code: Select all
esp_sleep_enable_gpio_wakeup();
esp_light_sleep_start();
Now with gpio if I enable BLE and then disable it by below commands and then if I do above sleep commands,
it is going to sleep but taking around 3+ mA of current. I am unable to bring it down.
Code: Select all
esp_bluedroid_disable();
esp_bluedroid_deinit();
esp_bt_controller_disable();
esp_bt_controller_deinit();
Issue can be solved only if I reboot the esp32 and if ble is not enabled for first time and if I sleep the device, it takes <1 mA. At any time if I use ble and later disable also, then the sleep mode current is increased to 3+ mA and I am unable to reduce it
IDE VERSION 3.3 STABLE