Hi, hope someone can help.
I'm testing with two esp devices running ESPEasy. When both devices are powered on, switches don't work,
but if I turn one of the two esp devices off, everything works fine. Did try this both ways around.
Someone else mentioned that it could be to do with the clientid
My mosquitto log shows both devices connecting as ESPClient0
1479219935: Client ESPClient0 already connected, closing old connection.
1479219935: New client connected from 192.168.0.30 as ESPClient0 (c1, k15, upi).
1479219955: New connection from 192.168.0.27 on port 1883.
1479219955: Client ESPClient0 already connected, closing old connection.
1479219955: New client connected from 192.168.0.27 as ESPClient0 (c1, k15, upi).
1479219965: New connection from 192.168.0.30 on port 1883.
I did set different names for both devices in the config section.
Is this correct, or should I change it, and then how would I go about doing that?
Thanks!
How do I change the clientid?
Moderators: grovkillen, Stuntteam, TD-er
-
- New user
- Posts: 4
- Joined: 15 Nov 2016, 15:17
Re: How do I change the clientid?
Retracing steps and rereading documentation, I found this:
"Unit nr Each ESP Easy unit needs a unique number in the range 1-31. This is important for MQTT connections and the Node list! Do not forget to set this field to a non-zero value, not conflicting with other units."
Mine were both set to 0, so went in and changed them to 1 and 2, submitted, and did a reboot. Now neither of them are connecting to my wifi anymore?
Arduino IDE serial monitor shows the following:
WIFI : Connecting... 1
WIFI : Disconnecting!
WIFI : Connecting... 2
WIFI : Disconnecting!
WD : Uptime 21 ConnectFailures 84 FreeMem 25032
MQTT : Connection lost
MQTT : Failed to connected to broker
"Unit nr Each ESP Easy unit needs a unique number in the range 1-31. This is important for MQTT connections and the Node list! Do not forget to set this field to a non-zero value, not conflicting with other units."
Mine were both set to 0, so went in and changed them to 1 and 2, submitted, and did a reboot. Now neither of them are connecting to my wifi anymore?
Arduino IDE serial monitor shows the following:
WIFI : Connecting... 1
WIFI : Disconnecting!
WIFI : Connecting... 2
WIFI : Disconnecting!
WD : Uptime 21 ConnectFailures 84 FreeMem 25032
MQTT : Connection lost
MQTT : Failed to connected to broker
-
- New user
- Posts: 4
- Joined: 15 Nov 2016, 15:17
Re: How do I change the clientid?
Okay, so if I change the unit nr on the R145_RC6 build, devices drops off the wifi and won't reconnect.
I've cleared the flash memory and re-flashed the same build only to have the same issue.
Tried the R120 Stable, and that seems to work fine, but I want to use the retain option which isn't available in that build.
Also tried setting up with the R120 stable and then updating to R145_RC6, but the same thing happens.
Does anyone know where I can get a different build? Apparently R121_RC has the retain option?
Sourceforge only has the stables available for download and I couldn't find any older download links on the wiki page.
Thanks in advance!
Edit: Found it, and devices working now.
I've cleared the flash memory and re-flashed the same build only to have the same issue.
Tried the R120 Stable, and that seems to work fine, but I want to use the retain option which isn't available in that build.
Also tried setting up with the R120 stable and then updating to R145_RC6, but the same thing happens.
Does anyone know where I can get a different build? Apparently R121_RC has the retain option?
Sourceforge only has the stables available for download and I couldn't find any older download links on the wiki page.
Thanks in advance!
Edit: Found it, and devices working now.
Who is online
Users browsing this forum: No registered users and 10 guests