This is a demo of running MQTT protocol on nodeMCU (8266 WIFI chipset). I'm using PubSubClient as the protocol implementation.
1. The board is setup to connect with the specified wifi router
2. After wifi is connected, it will connect to the specified MQTT server
3. The board will send uptime to the server periodically
4. The board will receive a 'blink' control command to control the LED light on the board. The command can be specified with a parameter of how many time the light will be turned on
The source code can be found from: https://github.com/singleye/esp8266/t...