-->
Page 1 of 1

new bulid firmware ans conn:send

PostPosted: Sat Jun 04, 2016 3:55 pm
by MakaronPL
hello
I have a problem with the firmware form NodeMCU bulid. when i send a few commands "conn:send" then ESP accepts only the first command.
example:
Code: Select allsrv = net.createServer(net.TCP)
srv:listen(80, function(conn)
    conn:on("receive", function(conn, payload)
        print(payload)
        conn:send("<h1> Hello</h1>")
        conn:send("<h1> NodeMCU</h1>")
    end)
    conn:on("sent", function(conn) conn:close() end)
end)

when I am using this code, then I see only text "Hello", but when I change firmware to "nodemcu_float_0.9.6-dev_20150704" i see 2 text.
how to solve this problem?I wish I have used nodeMcu Bulid because I need a rtcTime library

Re: new bulid firmware ans conn:send

PostPosted: Sat Jun 04, 2016 5:26 pm
by devsaurus
See http://nodemcu.readthedocs.io/en/master/en/modules/net/#note for an explanation and examples to solve your issue.