ESP-Nodes/Tutorial-Rainmaker.md

48 lines
2.5 KiB
Markdown
Raw Normal View History

2024-07-17 00:52:22 -04:00
# ESP RAINMAKER TUTORIAL
2024-07-17 01:00:11 -04:00
This tutorial walks you through the most important steps neccessary to provision ESP32-WROOM device.
2024-07-17 00:52:22 -04:00
> [!TIP]
2024-07-17 00:55:57 -04:00
> **WHAT'S REQUIRED:**
>
2024-07-17 00:56:57 -04:00
> ESP32-WROOM, either a Module or DevKit</br>
> Wi-Fi Access Point, preferrably with dedicated vLAN for IoT devices</br>
2024-07-17 01:00:11 -04:00
> Smart phone with RainMaker installed
### ESP-IDF: Create a New Project
2024-07-17 01:07:03 -04:00
Launch ESP-IDF extention on VS Code
2024-07-17 01:00:59 -04:00
<img alt="ESP-IDF. Create a New Project" src="https://github.com/alexandrebobkov/ESP-Nodes/blob/main/assets/Espressif-Rainmaker_001.png" width="70%"/>
2024-07-17 01:08:45 -04:00
Specify project name, directory path and ESP32 module (ESP32-WROOM or ESP32-C3). In addition, you may state the Serial port where ESP32 Module is connected to; this setting can be changed latter, if neccessary.
2024-07-17 01:07:03 -04:00
2024-07-17 01:00:59 -04:00
<img alt="ESP-IDF. Create a New Project" src="https://github.com/alexandrebobkov/ESP-Nodes/blob/main/assets/Espressif-Rainmaker_002.png" width="70%"/>
2024-07-17 01:17:16 -04:00
On the next screen, specify ESP Rainmaker extention and select example code to start with. For this tutorial, an example code for _ _Switch_ _ was selected. Click "Create project using template switch".
2024-07-17 01:11:44 -04:00
2024-07-17 01:00:59 -04:00
<img alt="ESP-IDF. Create a New Project" src="https://github.com/alexandrebobkov/ESP-Nodes/blob/main/assets/Espressif-Rainmaker_003.png" width="70%"/>
2024-07-17 01:11:44 -04:00
### Modify Template Code
2024-07-17 01:17:16 -04:00
Make the following changes to app_main.cpp source file.
Change the TAG variable as follows:
```C++
static const char *TAG = "ESP32-Nodes app main";
```
2024-07-17 01:00:59 -04:00
<img alt="ESP-IDF. Create a New Project" src="https://github.com/alexandrebobkov/ESP-Nodes/blob/main/assets/Espressif-Rainmaker_004.png" width="70%"/>
2024-07-17 01:03:09 -04:00
<img alt="ESP-IDF. Create a New Project" src="https://github.com/alexandrebobkov/ESP-Nodes/blob/main/assets/Espressif-Rainmaker_005.png" width="70%"/>
<img alt="ESP-IDF. Create a New Project" src="https://github.com/alexandrebobkov/ESP-Nodes/blob/main/assets/Espressif-Rainmaker_006.png" width="70%"/>
<img alt="ESP-IDF. Create a New Project" src="https://github.com/alexandrebobkov/ESP-Nodes/blob/main/assets/Espressif-Rainmaker_007.png" width="70%"/>
<img alt="ESP-IDF. Create a New Project" src="https://github.com/alexandrebobkov/ESP-Nodes/blob/main/assets/Espressif-Rainmaker_008.png" width="70%"/>
<img alt="ESP-IDF. Create a New Project" src="https://github.com/alexandrebobkov/ESP-Nodes/blob/main/assets/Espressif-Rainmaker_009.png" width="70%"/>
<img alt="ESP-IDF. Create a New Project" src="https://github.com/alexandrebobkov/ESP-Nodes/blob/main/assets/Espressif-Rainmaker_010.png" width="70%"/>