|
|
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 switch
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 switch: I (767) gpio: GPIO[9]| InputEn: 1| OutputEn: 0| OpenDrain: 0| Pullup: 1| Pulldown: 0| Intr:2 I (857) ESP_ZB_SWITCH: status: 255 I (857) ESP_ZB_SWITCH: Zigbee stack initialized I (857) ESP_ZB_SWITCH: Start network formation I (1377) ESP_ZB_SWITCH: Joined network successfully (Extended PAN ID: aa:98:48:01:a0:03:f7:84, PAN ID: 0xb8db) I (1837) ESP_ZB_SWITCH: status: 0 I (1837) ESP_ZB_SWITCH: Network steering started I (6587) ESP_ZB_SWITCH: status: 0 I (7097) ESP_ZB_SWITCH: status: 0 I (7147) ESP_ZB_SWITCH: New device commissioned or rejoined (short: 0xd200) I (7717) ESP_ZB_SWITCH: status: 0 I (7757) ESP_ZB_SWITCH: status: 0 I (9217) ESP_ZB_SWITCH: Found bulb addr: 0x77ea ep: 10 I (11657) ESP_ZB_SWITCH: Send ON/OFF toggle command I (12197) ESP_ZB_SWITCH: Send ON/OFF toggle command I (12547) ESP_ZB_SWITCH: Send ON/OFF toggle command I (12857) ESP_ZB_SWITCH: Send ON/OFF toggle command I (17327) ESP_ZB_SWITCH: Send ON/OFF toggle command
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.