Current Lua downloadable firmware will be posted here

User avatar
By rant
#24294 I am trying to get respond from a esp as access point .
When i send the request from Chrome to http://192.168.4.1/testdata , the esp is prints the request, but the respond has a problem:

1. in Chrome, the respond is coming sometimes, and very slowly, could be 20 seconds .
2. in Safari there is never a respond .
3. on iPhone, there is no respond also .

Seems that Apple devices cant get responds from the esp .

Here is the connection :

wifi.setmode(wifi.STATIONAP)
Code: Select allcfg={}
cfg.ssid="myNet" 
cfg.pwd="myNet"
wifi.ap.config(cfg)

sv=net.createServer(net.TCP)
sv:listen(80,function(c)
      c:on("receive", function(c, pl) print(pl) end)
      c:send("hello world")
      end)



What could cause it to not get respond, but ALWAYS get the request very fast and print it ?

thanks.