-->
Page 1 of 1

including required file on the esp2866

PostPosted: Fri Aug 19, 2016 2:10 pm
by faxMan
Hi, I wish to use the portable sleep method below to test some sensors. How do i install and where do i get this 'socket' library file from? I'm running LUA5.1.4, LuaLoader and ESP2866. Sorry for the total newbie question but i did google for a while and just got frustrated so i thought i would ask you folks. This is my first ESP2866 project.

THANK YOU!!!

require "socket"
function sleep(sec)
socket.select(nil, nil, sec)
end
sleep(0.2)