# Esp8266 and multiple ds18b20's with mqtt

**URL:** <https://discourse.nodered.org/t/esp8266-and-multiple-ds18b20s-with-mqtt/60556>\
**Category:** General\
**Tags:** http-request, mqtt\
**Created:** [30 March 2022 17:47 UTC](https://discourse.nodered.org/t/esp8266-and-multiple-ds18b20s-with-mqtt/60556 "2022-03-30T17:47:18Z")\
**Posts on this page:** 20\
**Page:** 4

<div class="post-metadata">

**Author:** ![9toejack](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/9toejack/32/56868_2.png) [@9toejack](https://discourse.nodered.org/u/9toejack)\
**Post date:** [4 April 2022 16:03 UTC](https://discourse.nodered.org/t/esp8266-and-multiple-ds18b20s-with-mqtt/60556/61 "2022-04-04T16:03:16Z")

</div>

Thanks, we have not yet, however right now it's wifi connection issue,.  
In using tasmota

---

<div class="post-metadata">

**Author:** ![9toejack](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/9toejack/32/56868_2.png) [@9toejack](https://discourse.nodered.org/u/9toejack)\
**Post date:** [4 April 2022 18:25 UTC](https://discourse.nodered.org/t/esp8266-and-multiple-ds18b20s-with-mqtt/60556/62 "2022-04-04T18:25:25Z")

</div>

that would explain why i cant log into it right now.  
going to reflash to errase settings and reenter the Wi-Fi for the comcast router.  
butl first check the settings as discussed above.

---

<div class="post-metadata">

**Author:** ![9toejack](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/9toejack/32/56868_2.png) [@9toejack](https://discourse.nodered.org/u/9toejack)\
**Post date:** [4 April 2022 18:27 UTC](https://discourse.nodered.org/t/esp8266-and-multiple-ds18b20s-with-mqtt/60556/63 "2022-04-04T18:27:09Z")

</div>

> [@Sean-McG](#):
>
> Are they set to only allow connection from a known MAC etc ?

no, but i can have it set up as trussted so there is no blockage if settings in router are changed during an update to router.  
ISP's are nutrias for screwing with your settings during updates

---

<div class="post-metadata">

**Author:** ![Sean-McG](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/sean-mcg/32/54677_2.png) [@Sean-McG](https://discourse.nodered.org/u/Sean-McG)\
**Post date:** [4 April 2022 18:31 UTC](https://discourse.nodered.org/t/esp8266-and-multiple-ds18b20s-with-mqtt/60556/64 "2022-04-04T18:31:36Z")

</div>

no need to reflash - just connect to tasmota AP open browser to 192.168.4.1 then use menu to change settings.

---

<div class="post-metadata">

**Author:** ![9toejack](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/9toejack/32/56868_2.png) [@9toejack](https://discourse.nodered.org/u/9toejack)\
**Post date:** [4 April 2022 18:45 UTC](https://discourse.nodered.org/t/esp8266-and-multiple-ds18b20s-with-mqtt/60556/65 "2022-04-04T18:45:24Z")

</div>

im having issues connecting  
i just had it connected to my netgear nightwawk  
but using guest wifi because the 5Ghz and 2.4Ghz had same name.  
im now trying to get it to connect to the comcast router( the same network as my Pi4)  
but its not connecting to the network.

---

<div class="post-metadata">

**Author:** ![9toejack](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/9toejack/32/56868_2.png) [@9toejack](https://discourse.nodered.org/u/9toejack)\
**Post date:** [4 April 2022 19:00 UTC](https://discourse.nodered.org/t/esp8266-and-multiple-ds18b20s-with-mqtt/60556/66 "2022-04-04T19:00:28Z")

</div>

so who here is a network guru,  
i think that the wifi here is jacked and i need to figure out proper settings for the hole thing.  
right now its not just my esp having issues its also my laptop, phone has no issue connecting to WIFI.  
but it wont connect to tasmota only my lap top will  
man this post has really gone sideways!

---

<div class="post-metadata">

**Author:** ![hominidae](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/hominidae/32/4174_2.png) [@hominidae](https://discourse.nodered.org/u/hominidae)\
**Post date:** [4 April 2022 20:31 UTC](https://discourse.nodered.org/t/esp8266-and-multiple-ds18b20s-with-mqtt/60556/67 "2022-04-04T20:31:24Z")

</div>

...is your Pi connected via LAN? You could create a WiFi-Accesspoint with the Pi, solely for the ESP if the ESPs are in WiFi range to the Pi.

---

<div class="post-metadata">

**Author:** ![9toejack](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/9toejack/32/56868_2.png) [@9toejack](https://discourse.nodered.org/u/9toejack)\
**Post date:** [4 April 2022 20:45 UTC](https://discourse.nodered.org/t/esp8266-and-multiple-ds18b20s-with-mqtt/60556/68 "2022-04-04T20:45:59Z")

</div>

No, pi is connected via wifi.  
I just got off the phone with isp, had them change my router to static and I'm only using net gear for wifi.  
I have to log into it now and adjust the settings.  
The esp had no problems connecting to it.

---

<div class="post-metadata">

**Author:** ![Sean-McG](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/sean-mcg/32/54677_2.png) [@Sean-McG](https://discourse.nodered.org/u/Sean-McG)\
**Post date:** [4 April 2022 23:22 UTC](https://discourse.nodered.org/t/esp8266-and-multiple-ds18b20s-with-mqtt/60556/69 "2022-04-04T23:22:29Z")

</div>

Did you actually try to connect to the same 2.4Ghz ssid as the PI uses ?

---

<div class="post-metadata">

**Author:** ![craigcurtin](https://avatars.discourse-cdn.com/v4/letter/c/94ad74/32.png) [@craigcurtin](https://discourse.nodered.org/u/craigcurtin)\
**Post date:** [4 April 2022 23:50 UTC](https://discourse.nodered.org/t/esp8266-and-multiple-ds18b20s-with-mqtt/60556/70 "2022-04-04T23:50:44Z")

</div>

> [@9toejack](#):
>
> so who here is a network guru,  
> i think that the wifi here is jacked and i need to figure out proper settings for the hole thing.  
> right now its not just my esp having issues its also my laptop, phone has no issue connecting to WIFI.  
> but it wont connect to tasmota only my lap top will  
> man this post has really gone sideways!

Its what i do for a living (network design and security)

So maybe do a hand drawn diagram of what connects to where so we can see what is up.

It sounds to me like you have a couple of issues and should really simplify things to start with

There is no reason the ISP supplied WIFI should not work for something as simple as this

The only setting in there would be the security level that is set on the WIFI - but you should be able to dumb this down for the ESP to connect. If you can try and set this to WPA2-Personal on the Router

Are you sure you do not have both the ComCast router and Netgear handing out IP Addresses ? i.e. acting as DHCP servers ?

You should really have the Netgear set to AP mode only and attach one of its LAN ports to the LAN port on the Comcast Router.

Craig

---

<div class="post-metadata">

**Author:** ![9toejack](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/9toejack/32/56868_2.png) [@9toejack](https://discourse.nodered.org/u/9toejack)\
**Post date:** [4 April 2022 23:51 UTC](https://discourse.nodered.org/t/esp8266-and-multiple-ds18b20s-with-mqtt/60556/71 "2022-04-04T23:51:58Z")

</div>

Yes that was my issue, esp8266 wouldn't connect, in middle of resetting whole network

---

<div class="post-metadata">

**Author:** ![craigcurtin](https://avatars.discourse-cdn.com/v4/letter/c/94ad74/32.png) [@craigcurtin](https://discourse.nodered.org/u/craigcurtin)\
**Post date:** [5 April 2022 02:01 UTC](https://discourse.nodered.org/t/esp8266-and-multiple-ds18b20s-with-mqtt/60556/72 "2022-04-05T02:01:57Z")

</div>

Send us some pictures of the config screens on the COmcast router as well

Craig

---

<div class="post-metadata">

**Author:** ![9toejack](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/9toejack/32/56868_2.png) [@9toejack](https://discourse.nodered.org/u/9toejack)\
**Post date:** [5 April 2022 02:19 UTC](https://discourse.nodered.org/t/esp8266-and-multiple-ds18b20s-with-mqtt/60556/73 "2022-04-05T02:19:43Z")

</div>

Well, I had Comcast change to static ip and Bridge my net gear router so everything will be one network, however I forgot my admin password so I did a factory reset so now I don't have an internet connection. I'm a dummy today lol

---

<div class="post-metadata">

**Author:** ![9toejack](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/9toejack/32/56868_2.png) [@9toejack](https://discourse.nodered.org/u/9toejack)\
**Post date:** [5 April 2022 06:58 UTC](https://discourse.nodered.org/t/esp8266-and-multiple-ds18b20s-with-mqtt/60556/74 "2022-04-05T06:58:46Z")

</div>

Ok, update.  
I had a long day with no ethernet. because i got my netgear router ip and the gateway ip crossed up.  
DOH!  
all is good with it now but i had an issue with esp8266 again. ill chock it up to being tired and frustrated from earlier events.  
Ill be back on my time around 8 or 9 am. wich i believe is most of you'alls evening.  
cheers.

---

<div class="post-metadata">

**Author:** ![Zodiac-69](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/zodiac-69/32/29022_2.png) [@Zodiac-69](https://discourse.nodered.org/u/Zodiac-69)\
**Post date:** [5 April 2022 13:58 UTC](https://discourse.nodered.org/t/esp8266-and-multiple-ds18b20s-with-mqtt/60556/75 "2022-04-05T13:58:32Z")

</div>

We have successfully used ESPEasy with MQTT and Node-RED.  
Had 20 ESP8266 units controlled from Noder-RED in real time with almost now issues.  
ESPEasy units were distributed throughout a data center driving 150kW heater in real time control.

My only issue was the end user connecting 380 to 220 line and blowing my 220 to 5V PSU's on the units

---

<div class="post-metadata">

**Author:** ![jbudd](https://avatars.discourse-cdn.com/v4/letter/j/5f8ce5/32.png) [@jbudd](https://discourse.nodered.org/u/jbudd)\
**Post date:** [5 April 2022 15:01 UTC](https://discourse.nodered.org/t/esp8266-and-multiple-ds18b20s-with-mqtt/60556/76 "2022-04-05T15:01:51Z")

</div>

An approach I've taken for connecting several ESPs and Raspberry Pies to my network is to use an old wireless router. It avoids the issue of splitting 2.4 and 5GHz SSIDs.

I use a Billion BiPac 7800 connected by ethernet to my main gateway/router and to provide a different 2.4GHz only wireless network.

It does not run a DHCP server; all devices' IP address are from the main router DHCP server, so it's not set up as a bridge, though that's an option if the number of devices grows.

---

<div class="post-metadata">

**Author:** ![Sean-McG](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/sean-mcg/32/54677_2.png) [@Sean-McG](https://discourse.nodered.org/u/Sean-McG)\
**Post date:** [5 April 2022 15:05 UTC](https://discourse.nodered.org/t/esp8266-and-multiple-ds18b20s-with-mqtt/60556/77 "2022-04-05T15:05:00Z")

</div>

Given that the ESP cannot even see the 5Ghz network why would same SSID be an issue?  
I have them working with a network setup with same name.

---

<div class="post-metadata">

**Author:** ![jbudd](https://avatars.discourse-cdn.com/v4/letter/j/5f8ce5/32.png) [@jbudd](https://discourse.nodered.org/u/jbudd)\
**Post date:** [5 April 2022 15:26 UTC](https://discourse.nodered.org/t/esp8266-and-multiple-ds18b20s-with-mqtt/60556/78 "2022-04-05T15:26:24Z")

</div>

I don't know if it is or isn't an issue, but I couldn't get some devices to connect to my new router, they are fine with the Billion.

---

<div class="post-metadata">

**Author:** ![9toejack](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/9toejack/32/56868_2.png) [@9toejack](https://discourse.nodered.org/u/9toejack)\
**Post date:** [5 April 2022 16:09 UTC](https://discourse.nodered.org/t/esp8266-and-multiple-ds18b20s-with-mqtt/60556/79 "2022-04-05T16:09:26Z")

</div>

so i have my wifi working but im now having an issue connecting the esp again  
lol  
I did order more esp devices , there could just be something wrong with this one from out the box .  
but i will completely reinstall tasmota and start the setup process again.  
better to have a fresh install .

---

<div class="post-metadata">

**Author:** ![9toejack](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/9toejack/32/56868_2.png) [@9toejack](https://discourse.nodered.org/u/9toejack)\
**Post date:** [5 April 2022 16:25 UTC](https://discourse.nodered.org/t/esp8266-and-multiple-ds18b20s-with-mqtt/60556/80 "2022-04-05T16:25:09Z")

</div>

> [@craigcurtin](#):
>
> Its what i do for a living (network design and security)
> 
> So maybe do a hand drawn diagram of what connects to where so we can see what is up.
> 
> It sounds to me like you have a couple of issues and should really simplify things to start with
> 
> There is no reason the ISP supplied WIFI should not work for something as simple as this
> 
> The only setting in there would be the security level that is set on the WIFI - but you should be able to dumb this down for the ESP to connect. If you can try and set this to WPA2-Personal on the Router
> 
> Are you sure you do not have both the ComCast router and Netgear handing out IP Addresses ? i.e. acting as DHCP servers ?
> 
> You should really have the Netgear set to AP mode only and attach one of its LAN ports to the LAN port on the Comcast Router.
> 
> Craig

yes they both where hading out ip address.  
so this is what i did yesterday.  
i had my crappy isp router set up as a nat service with a static ip.  
now the only wifi i have in my space is the netgear.  
it has same lable for 2.4ghz ad 5ghz  
my netgear has 2 satalites to ensure i have good wifi in building.  
ill work up a drawing so you can see what it is .  
however the wifi on the esp is acting up still .  
right now its not saving the settings, it keeps coming back to setup wifi screen and asking me for password again

 ![Screenshot_20220405-090511_CaptivePortalLogin](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/2/e/2e31cc7adb0d2d608245f1ebaf11794a65ad47aa.jpeg)

[Previous page](https://discourse.nodered.org/t/esp8266-and-multiple-ds18b20s-with-mqtt/60556.md?page=3)

[Next page](https://discourse.nodered.org/t/esp8266-and-multiple-ds18b20s-with-mqtt/60556.md?page=5)
