Skip to content

LomotHo/mqtt_wifi_led

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 

Repository files navigation

mqtt_wifi_led

remote control the led with nodemcu by mqtt protocol on esp8266 ( 中文文档 )

features

use the mqtt protocol,support reconnection of wifi and mqtt client,control the light with pwm

supported chip

esp8266 esp8285

firmware

there is an available firmware in the firmware folder with dht, file, gpio, http, mqtt, net, node, pwm, sjson, tmr, uart, wifi modules

usage

  1. 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
  1. 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"

plan

support homekit