Closed Nanowires closed 2 months ago
WiFi and Zigbee do not coexist at this time. Pick one or the other.
Do you have some proof for this?
As they share the same medium, I guess performance is not the best, but theoretically it should work. Also according to this page, they can coexists: https://github.com/espressif/esp-idf/issues/10423
Coexistence of Wi-Fi and 802.15.4 - Supported
Nope. Guess I was working on old information
From what I see from the debug log, there is a conflict between Zigbee and OpenThread libs. I will investigate this. Thank you for reporting.
Hi @Nanowires, I finally get to test/investigate this issue. However, on latest master I was not able to reproduce this. I was testing on C6 running both Zigbee as end device or coordinator. Including WiFi did not cause any compilation error. I also added a wifi connection to the sketch with successful connect to wifi with also successful Zigbee network formation. See attached log:
12:29:08.378 -> Connecting to MyWiFI
12:29:08.940 -> ...
12:29:09.947 -> WiFi connected
12:29:09.947 -> IP address:
12:29:09.947 -> 192.168.33.161
12:29:10.128 -> [ 2035][I][Zigbee_Light_Switch.ino:208] esp_zb_app_signal_handler(): ZDO signal: ZDO Config Ready (0x17), status: ESP_FAIL
12:29:10.128 -> [ 2046][I][Zigbee_Light_Switch.ino:152] esp_zb_app_signal_handler(): Zigbee stack initialized
12:29:10.128 -> [ 2056][I][Zigbee_Light_Switch.ino:158] esp_zb_app_signal_handler(): Device started up in factory-reset mode
12:29:10.128 -> [ 2066][I][Zigbee_Light_Switch.ino:160] esp_zb_app_signal_handler(): Start network formation
12:29:12.515 -> [ 4441][W][Zigbee_Light_Switch.ino:204] esp_zb_app_signal_handler(): Network(0x32a8) closed, devices joining not allowed.
12:29:12.515 -> [ 4453][I][Zigbee_Light_Switch.ino:175] esp_zb_app_signal_handler(): Formed network successfully (Extended PAN ID: 60:55:f9:00:00:f7:52:d0, PAN ID: 0x32a8, Channel:25, Short Address: 0x0000)
12:29:13.028 -> [ 4937][I][Zigbee_Light_Switch.ino:202] esp_zb_app_signal_handler(): Network(0x32a8) is open for 180 seconds
12:29:13.028 -> [ 4947][I][Zigbee_Light_Switch.ino:188] esp_zb_app_signal_handler(): Network steering started
Can you please retest on latest version 3.0.3 or on latest master? Thank you
Hi @P-R-O-C-H-Y, Thanks for the response. Indeed, with v3.0.3 I can not reproduce the issue, too. Seems like something from 3.0.2 to 3.0.3 fixed this issue :-)
Board
ESP32-C6
Device Description
-
Hardware Configuration
-
Version
v3.0.2
IDE Name
Arduino IDE and VSCode
Operating System
Fedora 39
Flash frequency
-
PSRAM enabled
yes
Upload speed
-
Description
When try to compile a Zigbee application together with a WiFi.h header, I get the following error:
When I remove the WiFi.h header, everything compiles as expected.
Sketch
Debug Message
Other Steps to Reproduce
No response
I have checked existing issues, online documentation and the Troubleshooting Guide