var SSID1="faux";
var key1= "a6a69";
var SSID2="faux2";
var key2= "a6a70";
var SSID=SSID1;
var key=key1;
1v94 Copyright 2016 G.Williams
>Start
Start connection process
end require
end test 0
=undefined
Reset the ESP8266
end reset
Hello World
Connecting to WiFi faux
end connect
Hello World
Hello World
Hello World
null
IP= 192.168.1.9
null
Wi-Fi Connected
And the other case
var SSID1="faux";
var key1= "a6a69";
var SSID2="faux2";
var key2= "a6a70";
var SSID=SSID2;
var key=key2;
1v94 Copyright 2016 G.Williams
>Start
Start connection process
end require
end test 0
=undefined
Reset the ESP8266
end reset
Hello World
Connecting to WiFi faux2
end connect
Hello World
Hello World
Hello World
Hello World
Hello World
Hello World
Hello World
Hello World
Hello World
WiFi connect failed: FAIL
errr 1
Hello World
faux
Start
Start connection process
end require
end test 0
Reset the ESP8266
end reset
Hello World
Connecting to WiFi faux
end connect
Hello World
Hello World
Hello World
null
IP= 192.168.1.9
null
Wi-Fi Connected
>
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.
See attached file ServeHello3.post.js
The first case
And the other case
1 Attachment