|
|
@ -15,9 +15,9 @@ function getStatus() { |
|
|
|
$("#status").innerHTML="Connecting..."; |
|
|
|
$("#status").innerHTML="Connecting..."; |
|
|
|
window.setTimeout(getStatus, 1000); |
|
|
|
window.setTimeout(getStatus, 1000); |
|
|
|
} else if (data.status=="got IP address") { |
|
|
|
} else if (data.status=="got IP address") { |
|
|
|
$("#status").innerHTML="Connected! Got IP "+data.ip+ |
|
|
|
$("#status").innerHTML="Connected! Got IP "+data.ip+ ".<br/>" + |
|
|
|
". If you're in the same network, you can access it <a href=\"http://"+data.ip+ |
|
|
|
"If you're in the same network, you can access it <a href=\"http://"+data.ip+ |
|
|
|
"/\">here</a>."; |
|
|
|
"/\">here</a>.<br/>ESP Link will switch to STA-only mode in a few seconds."; |
|
|
|
} else { |
|
|
|
} else { |
|
|
|
$("#status").innerHTML="Oops: " + data.status + ". Reason: " + data.reason + |
|
|
|
$("#status").innerHTML="Oops: " + data.status + ". Reason: " + data.reason + |
|
|
|
"<br/>Check password and selected AP.<br/><a href=\"wifi.tpl\">Go Back</a>"; |
|
|
|
"<br/>Check password and selected AP.<br/><a href=\"wifi.tpl\">Go Back</a>"; |
|
|
|