Post your best Lua script examples here

User avatar
By jankop
#8194
amera64 wrote:I have this code working but it doesn't seem to be reliable. I can get about 10 hits on the server and then it locks up or reboots the ESP8266. Anyone have any ideas why this would happen? I also noticed with every server request, the heap goes down and never recovers. I am using the latest version of nodeMCU.


With NodeMCU 0.9.5 build 20150124 I have not problem and server is very stabil without random restarts.. Memory heap is normally at 17kB. I think the program is quite usable.
User avatar
By jankop
#8233 I also use WPA2 and I connected over WAN too. The response is almost immediate, delay is seen in moments of reconnection to AP. ESP8266 is blocked tantalum and ceramic capacitors and my power is 12V/2A connected to Power Supply Module 3.3V/ 5V for breadboard with maximum current 700mA. The esp8266 works all day without rebooting.