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
ESP32C6 as a zigbee - MQTT gateway
Re: ESP32C6 as a zigbee - MQTT gateway
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.
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
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
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
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.
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.
WiFi and ZigBee use different central frequencies and bands.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.
Who is online
Users browsing this forum: Amazon [Bot], ChatGPT-User, PerplexityBot and 18 guests