--
You received this message because you are subscribed to the Google Groups "TasmotaUsers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to sonoffusers...@googlegroups.com.
To view this discussion on the web, visit https://groups.google.com/d/msgid/sonoffusers/cece0802-7aa3-4e06-85c9-88384ff02c87n%40googlegroups.com.
Sorry found the details further down.
Error code rc-2 is caused by a network error between the device and MQTT broker. It could be a password error, 2 clients with the same name or a timing error
Sent from Mail for Windows
From: 'Bourne ToRide' via TasmotaUsers
Sent: 25 May 2022 15:22
To: TasmotaUsers
Subject: MQTT failing to connect rc-2
This error must have been seen 100's of times but I have found no answer
--
Is it rc -5 or rc 5 there’s a difference (same for 2)
Code | Constant name | Description |
-5 | MQTT_DNS_DISCONNECTED | the DNS server cannot be reached or name cannot be resolved |
-4 | MQTT_CONNECTION_TIMEOUT | the server didn't respond within the keepalive time |
-3 | MQTT_CONNECTION_LOST | the network connection was broken |
-2 | MQTT_CONNECT_FAILED | the network connection failed |
-1 | MQTT_DISCONNECTED | the client is disconnected cleanly |
0 | MQTT_CONNECTED | the client is connected |
1 | MQTT_CONNECT_BAD_PROTOCOL | the server doesn't support the requested version of MQTT |
2 | MQTT_CONNECT_BAD_CLIENT_ID | the server rejected the client identifier |
3 | MQTT_CONNECT_UNAVAILABLE | the server was unable to accept the connection |
4 | MQTT_CONNECT_BAD_CREDENTIALS | the username/password were rejected |
5 | MQTT_CONNECT_UNAUTHORIZED | the client was not authorized to connect |
To view this discussion on the web, visit https://groups.google.com/d/msgid/sonoffusers/3476d009-23b1-471c-9f26-72c9d55f84fcn%40googlegroups.com.
Can you share a screenshot of the MQTT configuration page?
To view this discussion on the web, visit https://groups.google.com/d/msgid/sonoffusers/f2116282-046b-4087-94ca-0e4289d2fd52n%40googlegroups.com.
I meant the configuration page with the addresses and topics etc
To view this discussion on the web, visit https://groups.google.com/d/msgid/sonoffusers/5ad0e648-f4b0-498c-81d8-33f6fdeb8b9en%40googlegroups.com.
To view this discussion on the web, visit https://groups.google.com/d/msgid/sonoffusers/0932095f-89b8-48a2-8c4f-858920cc66f1n%40googlegroups.com.
OP said was installed on his openWRT modem
To view this discussion on the web, visit https://groups.google.com/d/msgid/sonoffusers/CAFjnQ3vD6Vs5f_qrqYBVwfpaT3WK7ftbuOaii9OY7mirLVWiCA%40mail.gmail.com.
Check the maximum number of devices – many routers limit to 32 – and rc-2 is a network connection issue
To view this discussion on the web, visit https://groups.google.com/d/msgid/sonoffusers/946e1d7f-375b-4e20-920a-06e741715225n%40googlegroups.com.
Without more information (such as a screenshot of the MQTT configuration page, router wifi logs, tasmota console log, the total number of devices – not just Tasmota ones - and the chipset of the modem – the ath10k-ct driver limits to 32 devices) it is impossible to guess what is causing your network connection error
To unsubscribe from this group and stop receiving emails from it, send an email to sonoffusers..@googlegroups.com.
To view this discussion on the web, visit https://groups.google.com/d/msgid/sonoffusers/CAFjnQ3vD6Vs5f_qrqYBVwfpaT3WK7ftbuOaii9OY7mirLVWiCA%40mail.gmail.com.
--
You received this message because you are subscribed to the Google Groups "TasmotaUsers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to sonoffusers...@googlegroups.com.To view this discussion on the web, visit https://groups.google.com/d/msgid/sonoffusers/946e1d7f-375b-4e20-920a-06e741715225n%40googlegroups.com.
--
You received this message because you are subscribed to the Google Groups "TasmotaUsers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to sonoffusers...@googlegroups.com.
To view this discussion on the web, visit https://groups.google.com/d/msgid/sonoffusers/1dd2db49-7255-4f21-8482-0324554e54bdn%40googlegroups.com.
Sorry, but a network connection error doesn’t mean that the network isn’t working but that device cannot connect to the broker over the network so the broker not running, etc would come into that category. The point is that it wasn’t a Tasmota issue but a network issue.
To view this discussion on the web, visit https://groups.google.com/d/msgid/sonoffusers/9cc15bde-d94b-4b35-a8a6-906774679f52n%40googlegroups.com.