In this video I connect my ESP8266 to the world. I build a MQTT connection to Adafruit.io and from there, to ,my IPAD, to IFTT and to a node-red instance hosted on IBM bluemix service.
I also show why this is one of the simplest concepts to solve the connection problem from behind your firewall to the internet.
For my tests, I used three different MQTT client libraries:
https://github.com/i-n-g-o/esp-mqtt-a...
http://pubsubclient.knolleary.net/
https://github.com/adafruit/Adafruit_...
Witty Board: http://s.click.aliexpress.com/e/EY3GoAy
They are all included in the Arduino IDE.
For your convenience, I posted the sketches I used for my tests to github. If you replace the credentials (and the feeds) you should be able to start with MQTT.
Example code: https://github.com/SensorsIot/MQTT-Ex...
Supporting Material and Blog Page: http://www.sensorsiot.org
Github: https://www.github.com/sensorsiot
If you want to support the channel and buy from Banggood use this link to start your shopping: https://bit.ly/2jAQEf4 (no additional charges for you)
Official Wemos Store: http://s.click.aliexpress.com/e/jUzBiIq
/ sensorsiot
/ spiessa