
Documentation Center
To achieve maximum power saving during deep sleep, it is necessary to switch off Bluetooth and WiFi before
calling esp_deep_sleep_start().
ESP32 Wiki Content
Arduino core for ESP32 Wiki content
Installation of BSP in PlatformIO
Install PlatformIO
Download and install the Visual Studio Code which is a great and open source tool.
After installing the Visual Studio Code, you can search for PlatformIO and install it in the Extensions item.
Install Espressif 32 Arduino Framework
1. After installing PlatformIO, you can see the PlatformIO icon and click open.
Figure 14: Visual Studio Code PlatformIO extension
2. Open "Platforms" in PlatformIO and search for "Espressif" on Embedded tab.
#
include
<esp_wifi.h>
#
include
<esp_bt.h>
...
esp_wifi_stop
();
esp_bt_controller_disable
();
esp_deep_sleep_start
();