|
|
3 лет назад | |
|---|---|---|
| .. | ||
| main | 3 лет назад | |
| CMakeLists.txt | 3 лет назад | |
| README.md | 3 лет назад | |
| partitions.csv | 4 лет назад | |
| sdkconfig.defaults | 3 лет назад | |
| Supported Targets | ESP32-H2 |
|---|
(See the README.md file in the upper level 'examples' directory for more information about examples.)
This test code shows how to configure Zigbee end device and use it as a light bulb
Before project configuration and build, make sure to set the correct chip target using idf.py set-target esp32h2.
Build the project, flash it to the board, and start the monitor tool to view the serial output by running idf.py -p PORT flash monitor.
(To exit the serial monitor, type Ctrl-].)
As you run the example, you will see the following log:
light bulb: I (918) ESP_ZB_LIGHT: status: 255 I (901) ESP_ZB_LIGHT: Zigbee stack initialized I (901) ESP_ZB_LIGHT: Start network steering I (2611) ESP_ZB_LIGHT: Joined network successfully (Extended PAN ID: aa:98:48:01:a0:03:f7:84, PAN ID: 0x0e8b) I (5651) ESP_ZB_LIGHT: on/off attribute setting to 1 I (6631) ESP_ZB_LIGHT: on/off attribute setting to 0 I (7331) ESP_ZB_LIGHT: on/off attribute setting to 1 I (8251) ESP_ZB_LIGHT: on/off attribute setting to 0 I (9111) ESP_ZB_LIGHT: on/off attribute setting to 1 I (9671) ESP_ZB_LIGHT: on/off attribute setting to 0
light switch example, the LED on this board loaded with light bulb example will be on and off.For any technical queries, please open an issue on GitHub. We will get back to you soon.