Big clue,
If I use:
setTimeout(function(){wifi.startAP(C.SSID,null, function(err){ wifi.connect("2WIRE113", {password: "3321205212"}, function(err){ if(err)console.log(err); else console.log("connected!"); }); } ); },700);
such that I have the sta config along with the ap
wifi.getStatus() { "mode": "sta+ap", "station": "connected", "ap": "enabled", "phy": "11n", "powersave": "none", "savedMode": "off" } wifi.getIP() { "ip": "192.168.1.71", "netmask": "255.255.255.0", "gw": "192.168.1.254", "mac": "5c:cf:7f:88:f4:a0" } wifi.getAPIP() { "ip": "192.168.4.1", "netmask": "255.255.255.0", "gw": "192.168.4.1", "mac": "5e:cf:7f:88:f4:a0" } wifi.getAPDetails() { "status": "enabled", "authMode": "open", "hidden": false, "maxConn": 4, "ssid": "ESP_88F4A0", "password": "", "savedSsid": null, "stations": [ ] }
now, I'm not able to ping 192.168.4.1 'Request timed out' which explains why the browser won't connect. Can ping 192.168.1.71
Now the big question, why am I not able to ping?
No proxy enabled, Firewall off and disabled virus scan. Points to Windows 10 to me.
Also tried tracert
C:\Users\Robin>tracert -h 3 192.168.4.1 Tracing route to 192.168.4.1 over a maximum of 3 hops 1 2 ms 3 ms 7 ms homeportal [192.168.1.254] 2 * * * Request timed out. 3 * * * Request timed out. Trace complete.
C:\Users\Robin>tracert -h 3 192.168.4.1
Tracing route to 192.168.4.1 over a maximum of 3 hops
1 2 ms 3 ms 7 ms homeportal [192.168.1.254] 2 * * * Request timed out. 3 * * * Request timed out.
Trace complete.
Edit Sat 2017.02.25
Getting closer. For those on a 2Wire ATT UVerse gateway/router - (likely USA) https://forums.att.com/t5/AT-T-Internet-Equipment/Static-IP-Setup-3600-3800-3801/td-p/3607065
setup a static IP address of 192.168.4.1
Now I am able to ping the ap and the sta, but still am unable to access via a browser page.
Maybe that will be cured with a Windows 10 reboot. Will have to wait for that . . . .
@Robin started
Espruino is a JavaScript interpreter for low-power Microcontrollers. This site is both a support community for Espruino and a place to share what you are working on.
Big clue,
If I use:
such that I have the sta config along with the ap
now, I'm not able to ping 192.168.4.1 'Request timed out' which explains why the browser won't connect. Can ping 192.168.1.71
Now the big question, why am I not able to ping?
No proxy enabled, Firewall off and disabled virus scan. Points to Windows 10 to me.
Also tried tracert
Edit Sat 2017.02.25
Getting closer. For those on a 2Wire ATT UVerse gateway/router - (likely USA)
https://forums.att.com/t5/AT-T-Internet-Equipment/Static-IP-Setup-3600-3800-3801/td-p/3607065
setup a static IP address of 192.168.4.1
Now I am able to ping the ap and the sta, but still am unable to access via a browser page.
Maybe that will be cured with a Windows 10 reboot. Will have to wait for that . . . .