- [中文版本](https://github.com/espressif/esp-mesh-lite/blob/master/examples/rainmaker_led_light/README_CN.md) # LED Light Example(Nova Home) This example uses the Rainmaker cloud platform to demonstrate the ESP-IoT-Bridge **Wi-Fi router** function. User can configure the device through the `Nova Home` APP and successfully connect to the Rainmaker cloud. The device is connected to the cloud based on Rainmaker, It can also provide other devices with the ability to surf the Internet wirelessly, and form a network with the Mesh-Lite function, which greatly reduces the load on the router and expands the wireless communication range. ## Get Start ### 1. Apps - [Google PlayStore](https://play.google.com/store/apps/details?id=com.espressif.novahome) - [Apple App Store](https://apps.apple.com/us/app/nova-home/id1563728960) ### 2. Get Key Currently, there are two ways for a device to obtain a certificate: - Self Claiming: After the network is configured, the device directly sends an http request to pull the certificate from the server, which can only be applied on **ESP32-S3** and **ESP32-C3**. Due to the binding with the MAC, the certificate pulled by each device is the same each time. - Assisted Claiming: When configuring the network, the mobile APP requests a certificate from the server, and then sends it to the device through Bluetooth. It is not bound to the MAC. By default, an account has a limit of 5 applications. Currently, ESP32-S3 and ESP32-C3 use Self-Claiming to obtain certificates by default, while ESP32 can only use Assisted Claiming to obtain certificates. > Nova Home's Assisted Claiming method is currently unstable. If you use ESP32 to obtain a certificate, it is recommended to use the [ESP Rainmaker](https://github.com/espressif/esp-rainmaker#phone-apps) APP for Claiming ### 3. IDF environment setup & SDK Refer to [README](https://github.com/espressif/esp-iot-bridge/blob/master/components/iot_bridge/User_Guide.md#3-set-up-development-environment) ### 4. Mesh-Lite function - You can choose whether to enable the Mesh-Lite function in the menuconfig `Bridge Configuration -> The Interface used to provide network data forwarding for other devices -> Enable Mesh-Lite`. This example enables this function by default. - If the Mesh-Lite function is enabled, the first networked device will connect to the target router and serve as the root node, and subsequent devices will be connected to the root node device and act as child nodes to form a Mesh-Lite network. For details, please refer to [Mesh-Lite](https://github.com/espressif/esp-mesh-lite/blob/master/components/mesh_lite/User_Guide.md). ### 5. Build & Flash After the ESP-IDF environment is successfully set up, you can execute the following commands to compile and burn the firmware. ``` $ cd esp-mesh-lite/examples/rainmaker/led_light $ idf.py set-target esp32c3 $ idf.py build $ idf.py flash ``` ### 6. Add devices to Nova Home - Open `Nova Home`, the APP will automatically search for the device to be configured <img src="./_static/find_devices.jpg" alt="find_devices" width="25%" div align=center /> - Add devices <img src="./_static/select_devices.jpg" alt="select_devices" width="25%" div align=center /> - Enter distribution network information <img src="./_static/select_network.jpg" alt="select_network" width="25%" div align=center /> - Pair and connect to configure the network <img src="./_static/connect_ble.jpg" alt="connect_ble" width="25%" div align=center /> - Distribution network is successful <img src="./_static/done.jpg" alt="done" width="25%" div align=center /> - LED control <img src="./_static/control.jpg" alt="control" width="25%" div align=center /> ### 7. Precautions - Currently `Nova Home` only supports Wi-Fi Provisioning over Bluetooth Low Energy, so this example does not support ESP32-S2 chip currently.
To create a project from this example, run:
idf.py create-project-from-example "espressif/mesh_lite=0.2.0:rainmaker_led_light"