- Wed Nov 18, 2015 1:41 pm
#34431
Michaelo wrote:I was happily working on my project collecting data form ESP01 sensors and sending to my local ESP server...
Then I came across MQTT and thought I'd modify my set-up and use it but I'm completely lost...
I spent a few days working this out. I left the ESP 8266 out of the equation initially just to get the server and whatever router infrastructure proven out first.
I used an old EEEPC 900 netbook as my server and installed ubuntu linux. I had a ton of difficulty with other light distributions on an old dell desktop and eventually gave up on it. I installed and configured moquitto MQTT broker (
http://mosquitto.org/). I also installed the apache web server to be able to easily check if my network and stuff were all working correctly.
On my normal windows 7 PC, I installed Eclipse Paho MQTT Client (
http://www.eclipse.org/paho/) in order to test out the server operation and figure out how the MQTT subscribe and publish messages work.
Once I got all the pieces in place, it all worked pretty easily. Eventually, I put the MQTT stuff from the SDK onto my ESP8266-01 and fired it up. I was able to publish stuff to the mosquitto server and see it get relayed to the Paho client on my PC. I haven't gotten around to modifying the MQTT code on the ESP to do anything useful yet, but the basic demo works like its supposed to.
Hope this helps.
tkdcal