Chat here about code rewrites, mods, etc... with respect to the github project https://github.com/esp8266/Arduino

Moderator: igrr

User avatar
By yoavshtainer
#33533 hello all!

i'm new in mqtt and i'm not understand what ip adress i need to enter to the code for the server (i'm just want to see how it's work) i'm using "mqtt_publish_large" example . and how exactly i can use this protocol (can i make my esp client and a server? it's can be a server at all?)
i try to debug my-self but apparently ( :cry: :cry: ) i dont understand enough to do it...
in my first attempt i enterd the ip of my PC. and i discover that his enter to the" if (!client.connected())" but never enter to " if (client.connect("arduinoClient")) "
how i connect to this?
what i need to learn?
i just dont understand anything from this code...

plaese help!
User avatar
By eduperez
#33538 This is a good guide to understand MQTT:
http://www.hivemq.com/blog/mqtt-essenti ... ucing-mqtt
(do not stop on part 1, even if it seems to complex or off-topic, just jump to part 2).

Now, in your case, you need a MQTT broker to receive your messages. You can install one yourself (http://mosquitto.org/, for example), or you can use a public one (https://thingspeak.com/, for example).

Hope this helps.
User avatar
By yoavshtainer
#33606 it's a little bit stupid but i'm using windows 7 (64 bit) and when i'm trying to install the mosqiutto, i cant.
he give me an error evry time... a missing dll, an uncorrect path, and more.

any one have a good guide for mosqiutto install for windows (7 64 bit)? (i go throw the readme file on the mosqiutto install and do what he said and still not work...)

best regard...

yoav