|
|
há 3 anos atrás | |
|---|---|---|
| .. | ||
| main | há 3 anos atrás | |
| CMakeLists.txt | há 3 anos atrás | |
| README.md | há 3 anos atrás | |
| partitions.csv | há 4 anos atrás | |
| sdkconfig.defaults | há 4 anos atrás | |
| Supported Targets | ESP32 | ESP32-C3 | ESP32-S2 | ESP32-S3 |
|---|
(See the README.md file in the upper level 'examples' directory for more information about examples.)
This example demonstrates how to build a Zigbee Gateway device. It runs on a Wi-Fi SoC such as ESP32, ESP32-C3 and ESP32-S3, with an 802.15.4 SoC like ESP32-H2 running esp_zigbee_rcp to provide 802.15.4 radio.

| ESP32 pin | ESP32-H2 pin |
|---|---|
| GND | G |
| GPIO4 (RX) | TX |
| GPIO5 (TX) | RX |
Before project configuration and build, make sure to set the correct chip target using idf.py set-target esp32 or idf.py set-target esp32s3
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:
esp_zigbee_gateway: I (660) ESP_ZB_GATEWAY: status: -1 I (670) ESP_ZB_GATEWAY: Zigbee stack initialized I (680) ESP_ZB_GATEWAY: Zigbee rcp device booted I (1280) ESP_ZB_GATEWAY: Start network formation I (3060) ESP_ZB_GATEWAY: Formed network successfully (ieee extended address: f9:54:2d:01:a0:03:f7:84, PAN ID: 0x8651) I (4060) ESP_ZB_GATEWAY: status: 0 I (4400) ESP_ZB_GATEWAY: Network steering started
For any technical queries, please open an issue on GitHub. We will get back to you soon