remote control the led with nodemcu by mqtt protocol on esp8266 ( 中文文档 )
use the mqtt protocol，support reconnection of wifi and mqtt client，control the light with pwm
there is an available firmware in the firmware folder with dht, file, gpio, http, mqtt, net, node, pwm, sjson, tmr, uart, wifi modules
- set the arg in config.lua
wifiLedPin --output pin config.wifi.ssid --ssid of wifi config.wifi.pwd --passwore of wifi config.mqtt.* --some config related to mqtt, a mqtt broker is needed
- flash all the flie of the src folder into you chip then youcan control you led with mqtt
the following command can switch the light to 10, max is 100
mosquitto_pub -h mqttserver.com -t /dorm/wifiLed -m "10"