ESP32 is a series of low-cost, low-power system on a chip microcontrollers with integrated Wi-Fi and dual-mode Bluetooth. You can develop for it using Azure IoT Device Workbench to take advantage of Microsoft Azure services.
We recommend Azure IoT Device Workbench extension for Visual Studio Code to develop on the ESP32 devices.
Azure IoT Device Workbench provides an integrated experience to develop IoT solutions. It helps both on device and cloud development using Azure IoT and other services. You can watch this Channel9 video to have an overview of what it does.
Follow these steps to prepare the development environment for ESP32 devices:
- Download and install Arduino IDE. It provides the necessary tool chain for compiling and uploading Arduino code.
Note: Arduino IDE 1.8.7
has breaking changes, causing board package and library installation failures. It is recommended to that you install version 1.8.6
- Windows: Use Windows Installer version
- macOS: Drag and drop the Arduino into
/Applications
- Ubuntu: Unzip it into
$HOME/Downloads/arduino-1.8.5
-
Install Visual Studio Code, a cross platform source code editor with powerful developer tooling, like IntelliSense code completion and debugging.
-
Install Arduino for Visual Studio Code.
-
Look for Azure IoT Device Workbench in the extension marketplace and install it. Together with Azure IoT Device Workbench, other dependent extensions will be installed.
-
Open File > Preference > Settings and add following lines to configure Arduino.
-
Windows
"arduino.path": "C:\\Program Files (x86)\\Arduino", "arduino.additionalUrls": "https://dl.espressif.com/dl/package_esp32_index.json"
-
macOS
"arduino.path": "/Application", "arduino.additionalUrls": "https://dl.espressif.com/dl/package_esp32_index.json"
-
Ubuntu
"arduino.path": "/home/{username}/Downloads/arduino-1.8.5", "arduino.additionalUrls": "https://dl.espressif.com/dl/package_esp32_index.json"
-
Use
F1
orCtrl+Shift+P
(macOS:Cmd+Shift+P
) to open the command palette, type and select Arduino: Board Manager. Search for esp32 and install the latest version.
If you encounter problems, you can reach out to us from: