![Smile :)](./images/smilies/icon_e_smile.gif)
cendev wrote:init.lua is running at the startup and you can edit thatso yes, you can i guess
looks nicejust gave it a small try and all looks fine
looks like a piece of art since now
haven't try the gpio
timer also perfect
edit : Yes, you can create your own scripts and call them via dofile or use init.lua
Lets get the party started and +1
[url=https://www.banggood.com/custlink/KvGGhGF4wG[/url]
I like ESP8266 and ESP8285 and ESP32
![Very Happy :D](./images/smilies/icon_e_biggrin.gif)
give me a few mins and i'll inform you but i'm pretty sure yep =)
Yes my friend we can
![Smile :)](./images/smilies/icon_e_smile.gif)
not exactly what i did but these may give an idea i guess
![Very Happy :D](./images/smilies/icon_e_biggrin.gif)
![Very Happy :D](./images/smilies/icon_e_biggrin.gif)
first time connection to network is not included
![Smile :)](./images/smilies/icon_e_smile.gif)
the example below is the dumbest way to do that
![Very Happy :D](./images/smilies/icon_e_biggrin.gif)
![Very Happy :D](./images/smilies/icon_e_biggrin.gif)
![Very Happy :D](./images/smilies/icon_e_biggrin.gif)
steps i remember
![Very Happy :D](./images/smilies/icon_e_biggrin.gif)
i created a file via :
file.open("name.lua","w+")
file.writeline([[sk=net.createConnection(net.TCP, false) sk:on("receive", function(sck, c) print(c) end ) sk:connect(15,"192.168.1.2") sk:send("l100")]])
file.close()
and then i edited my init.lua
file.open("init.lua","w+")
file.writeline([[tmr.alarm(10000, 0, function() dofile("name.lua") end )]])
file.close()
after restarting the node , 10 secs later it connected to my server and sent the message
![Smile :)](./images/smilies/icon_e_smile.gif)