Home

Connect to WIFI router
Post data to cloud service
wifi.setmode(wifi.STATION) wifi.config("SSID", "PASSWORD")
--CloudID can be allocated in the Web IDE cloud=Cloud:new("CloudID") cloud:append(78.8)
Timers
GPIO
timer=Timer:new() timer:setInterval(function() --Do your periodic work here end, 500) --milliseconds
pin=2 --OUTPUT gpio.mode(pin, gpio.OUTPUT) gpio.write(pin, gpio.LOW) --INPUT gpio.mode(pin, gpio.INPUT) value = gpio.read(pin)