As the title says... Chat on...

User avatar
By xtal
#40794 After moving my webpage to flash then using REQUIRE to load/use my serial input has started
dropping. I lowered baud from 38400 to 9600 , this helped, but still fails.
I', using uart.on("data","\n") I', using 4 Requires with 4 c:sends(), which apparently is
affecting the uart call backs.
I need to increase the Rx buffer, or have a better way to handle the serial...
Small packets < 256 seem ok, >256 have drop out .
code snip is
Code: Select all uart.on("data", "\n",uartRX,0)
    sv=net.createServer(net.TCP, 30)   
    sv:listen(80,function(c)                   
       c:on("sent", Send80) 
       c:on("receive", Rcv80)   
User avatar
By xtal
#40911 LUA/nodeMCU sdk151
changed from uart.on("data", "\n",uartRX,0)
to uart.on("data", 1,uartRX,0) which makes the problem show better..
buffer is filling , then big stall dropping char, then filling more....

Is it possible to change the Rx, buffer size ???