Page 1 of 1

ESP32C6 as a zigbee - MQTT gateway

Posted: Thu Jan 15, 2026 4:18 pm
by mantielero
Hello everybody,
I was wondering if it is possible to use the ESP32C6 as a gateway. I bought one and tried to use it as a gateway but it is failing to pair devices, so I wonder if maybe it is simply not possible to use it like that.

Regards

Re: ESP32C6 as a zigbee - MQTT gateway

Posted: Fri Jan 16, 2026 3:47 am
by real_mon2
Yes, it should be possible.

AI is actually getting very good on such questions.

Search for 'ESP32C6 mqtt gateway' on Google AI and note the full details. The use of the Arduino IDE for the Espressif modules is very powerful.

<copied from the AI response>

How to Get Started
Setup: Use Arduino IDE or ESP-IDF with libraries like PubSubClient or built-in ESP-MQTT.
Connect: Configure Wi-Fi credentials.
Code: Publish sensor readings to specific MQTT topics (e.g., home/livingroom/temperature).
Secure: Implement MQTT over TLS/SSL for secure connections to cloud brokers using certificates.

Re: ESP32C6 as a zigbee - MQTT gateway

Posted: Sun Jan 18, 2026 9:15 am
by mantielero
I actually have a working code using esp-idf. It connects to wifi, it send messages to a MQTT broker and it looks like it setups Zigbee correctly. But then, during the time in which the devices are allowed to join the network, nothing happens. I have in the menu Radio Coexistence. I have tried scanning all the channels, also using just 15, 20, 25 in order to avoid wifi interference. I have also tried scanning only channel 11 (the same used by my wifi); this is because I managed to pair the device with another Tasmota device (in order to check that it wasn't a device failure) and it was using channel 11.

So I am a bit lost on what else I could check. I used vibe coding to generate my code. I tried a mix of qwen, devstral, gemini and claude in order to get "different opinions" ;oP

Re: ESP32C6 as a zigbee - MQTT gateway

Posted: Tue Jan 20, 2026 7:23 am
by nopnop2002
WiFi channel 1
center frequency: 2412 MHz (2.412 GHz)
frequency range: 2401MHz-2423MHz
Each channel is approximately 20-22 MHz wide.

ZigBee channel 11
center frequency: 2405 MHz
frequency range: 2402.5Mhz-2407.5MHz
Each channel is approximately 2.5 MHz wide.
It connects to wifi, it send messages to a MQTT broker and it looks like it setups Zigbee correctly.
But then, during the time in which the devices are allowed to join the network, nothing happens.
WiFi and ZigBee use different central frequencies and bands.