Cant get respond from AP, struggling for 2 days now,please h
Posted: Sun Jul 26, 2015 6:20 am
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)
What could cause it to not get respond, but ALWAYS get the request very fast and print it ?
thanks.
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 all
cfg={}
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.