Data Sheet
43
print("inter tmr")
if(pin_value=="10") then
gpio.write(pin, gpio.HIGH)
gpio.write(pin1, gpio.LOW)
elseif(pin_value=="11") then
gpio.write(pin, gpio.LOW)
gpio.write(pin1, gpio.HIGH)
end
end)
end)
conn:on("sent", function(conn)
collectgarbage()
end)
end)
The lessons are over here, and you have learned the basic application of ESP8266 NodeMCU, but the usage of
ESP8266 is not only these. There are many other examples of the ESP8266 in the folder files, you can try them by
yourself And if you need other Crowtail modules you can visit:http://www.elecrow.com/ . Hope you have a enjoy
time.