Confused with ESP8266 NODEMCU

95 views
Skip to first unread message

Floppy Penguin

unread,
Oct 18, 2017, 11:34:10 AM10/18/17
to MQTT

Hi readers,

I am running the mosquitto broker on my windows pc, running on 0.0.0.0:1883.
I am working on an IoT project and am using the esp 8266. When i am programming my esp i have no idea of what my mqtt sever ip address would be to put in arduino IDE.
Any help is appreciated,
                          Thanks

Frank Pagliughi

unread,
Oct 18, 2017, 12:28:27 PM10/18/17
to mq...@googlegroups.com
In MQTT, the terms "server" and "broker" are often used interchangeably. It appears to be asking for the IP address of your Windows PC.
--
To learn more about MQTT please visit http://mqtt.org
---
You received this message because you are subscribed to the Google Groups "MQTT" group.
To unsubscribe from this group and stop receiving emails from it, send an email to mqtt+uns...@googlegroups.com.
To post to this group, send email to mq...@googlegroups.com.
Visit this group at https://groups.google.com/group/mqtt.
For more options, visit https://groups.google.com/d/optout.

Frits Erasmus

unread,
May 13, 2018, 12:58:21 PM5/13/18
to MQTT
Floppy Penguin,

Sorry for LATE reply, maybe it helps someone else: open a DOS session and in comandline type in "ipconfig /all"
This will give you the ip address

depends if you are connecting WiFi of LAN, pick the correct one to use

Hope this helps 

Dougie Lawson

unread,
May 14, 2018, 2:26:01 AM5/14/18
to mq...@googlegroups.com
The problem with what you're doing is that as soon as you reboot your router or don't connect your PC within the DHCP lease time the IP address for it will change.

You need to go to your router's configuration pages and give your laptop MAC address a fixed IP address, that way you can hard-code it in your Arduino scripts and you won't get any connection problems.

It doesn't matter whether it's WiFi or a cabled connection as long as you assign a fixed LAN IP address.

All of my brokers run on Raspberry Pis running Raspbian & Mosquitto and having a fixed IP address defined in /etc/dhcpcd.conf.

Regards, Dougie

--
To learn more about MQTT please visit http://mqtt.org
---
You received this message because you are subscribed to the Google Groups "MQTT" group.
To unsubscribe from this group and stop receiving emails from it, send an email to mqtt+unsubscribe@googlegroups.com.

To post to this group, send email to mq...@googlegroups.com.
Visit this group at https://groups.google.com/group/mqtt.
For more options, visit https://groups.google.com/d/optout.

Frits Erasmus

unread,
May 22, 2018, 2:55:26 AM5/22/18
to MQTT
@DougieLawson,

May I please ask you for some pointers on using my ESP8266 NODEMCU.

I am very new in this game, so please do not assume I know the obvious.
I have successfully installed MQTT server/ Node-RED on a RPi 3B+ and I am able to turn on/off a few relays.

I now would like to introduce 3 ESP8266 NODEMCU, to measure temp and trigger a relay. Calculations and rules will be done on the RPi.

I am able to report temperature on the serial screen from my DS18B20, but I have no idea how to send it to the broker.

Would you mind to explain to me how to program that portion in IDE OR if you know about a URL that has the info, please share it with me.

Regards

Frits


On Monday, May 14, 2018 at 8:26:01 AM UTC+2, Dougie wrote:
The problem with what you're doing is that as soon as you reboot your router or don't connect your PC within the DHCP lease time the IP address for it will change.

You need to go to your router's configuration pages and give your laptop MAC address a fixed IP address, that way you can hard-code it in your Arduino scripts and you won't get any connection problems.

It doesn't matter whether it's WiFi or a cabled connection as long as you assign a fixed LAN IP address.

All of my brokers run on Raspberry Pis running Raspbian & Mosquitto and having a fixed IP address defined in /etc/dhcpcd.conf.

Regards, Dougie
On 13 May 2018 at 17:58, Frits Erasmus <frits....@gmail.com> wrote:
Floppy Penguin,

Sorry for LATE reply, maybe it helps someone else: open a DOS session and in comandline type in "ipconfig /all"
This will give you the ip address

depends if you are connecting WiFi of LAN, pick the correct one to use

Hope this helps 

On Wednesday, 18 October 2017 17:34:10 UTC+2, Floppy Penguin wrote:

Hi readers,

I am running the mosquitto broker on my windows pc, running on 0.0.0.0:1883.
I am working on an IoT project and am using the esp 8266. When i am programming my esp i have no idea of what my mqtt sever ip address would be to put in arduino IDE.
Any help is appreciated,
                          Thanks

--
To learn more about MQTT please visit http://mqtt.org
---
You received this message because you are subscribed to the Google Groups "MQTT" group.
To unsubscribe from this group and stop receiving emails from it, send an email to mqtt+uns...@googlegroups.com.

To post to this group, send email to mq...@googlegroups.com.
Visit this group at https://groups.google.com/group/mqtt.
For more options, visit https://groups.google.com/d/optout.

Frits Erasmus

unread,
May 22, 2018, 12:20:56 PM5/22/18
to MQTT
Got it figured out.

Thanks
Reply all
Reply to author
Forward
0 new messages