ESP32C6 as a zigbee - MQTT gateway

mantielero
Posts: 2
Joined: Thu Jan 15, 2026 4:14 pm

ESP32C6 as a zigbee - MQTT gateway

Postby mantielero » Thu Jan 15, 2026 4:18 pm

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

real_mon2
Posts: 27
Joined: Wed Dec 25, 2024 4:59 pm

Re: ESP32C6 as a zigbee - MQTT gateway

Postby real_mon2 » Fri Jan 16, 2026 3:47 am

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.

mantielero
Posts: 2
Joined: Thu Jan 15, 2026 4:14 pm

Re: ESP32C6 as a zigbee - MQTT gateway

Postby mantielero » Sun Jan 18, 2026 9:15 am

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

nopnop2002
Posts: 347
Joined: Thu Oct 03, 2019 10:52 pm
Contact:

Re: ESP32C6 as a zigbee - MQTT gateway

Postby nopnop2002 » Tue Jan 20, 2026 7:23 am

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.

Who is online

Users browsing this forum: Amazon [Bot], ChatGPT-User, PerplexityBot and 17 guests