Post your best Lua script examples here

User avatar
By HermannSW
#21639 Just sweet:
Image

6g weight AP allowing to connect and telnet into LUA ...

Not sure whether 4.18V from LiPo instead of 3.3V is good, but it works.

Hermann.
User avatar
By HermannSW
#21702 Toggling blue TX LED is easily done by telnet wirelessly into above telnet server (GPIO1 is index 10, see):
Code: Select all$ telnet 192.168.179.1 2323
Trying 192.168.179.1...
Connected to 192.168.179.1.
Escape character is '^]'.
Welcome to NodeMCU world.

> gpio.mode(10, gpio.OUTPUT)
> gpio.write(10, 1-gpio.read(10))
> gpio.write(10, 1-gpio.read(10))
>


Hermann.