Skip to content

Commit

Permalink
added alert for failed wifi
Browse files Browse the repository at this point in the history
  • Loading branch information
elijahparker committed Dec 5, 2016
1 parent 1d28e06 commit 38846ea
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions main.js
Original file line number Diff line number Diff line change
Expand Up @@ -197,6 +197,7 @@ if (VIEW_HARDWARE) {
var currentTime = wifiConnectionTime = new Date().getTime();
if(currentTime - wifiConnectionTime < 30 * 1000) {
// show alert -- authentication probably failed
ui.alert('Error', "WiFi failed to connect to " + previousConnection.ssid + ".\nTry again, double-checking that the password is correct.\nNote: if it continues to fail to connect, try a different access point if possible. There might be an issue with connection to Apple Airport wireless routers. This will hopefully be resolved in the near future.");
} else {
wifiConnectionTime = new Date().getTime();
wifi.disable(function(){
Expand Down

0 comments on commit 38846ea

Please sign in to comment.