Post your best Lua script examples here

User avatar
By zacnotes
#23863
jankop wrote:I edit the program for the POST method and according to the advice by Markus Gritsch.


Great stuff jankop, this has helped me get my project rolling again. I would like to ask where the info by Markus regarding the POST method is located, so I can understand exactly what is happening.

Thanks!
User avatar
By Saroz
#30400 Thank you dear all,

i have some problem.
when using the delay() or sleep() function between two Gpio.writing lines for blink the LED when press button on web and ESP8266-01 is restarting .

for Examble im using same as below code:
if string.find(payload,"led_off") then
print("input led_off - ")
gpio.write(led2,gpio.HIGH);
Delay(50);
gpio.write(led2,gpio.LOW);
led = "OFF";
end


Can anyone help me for the same.