wifi connection regression in 1v95? #5970
Replies: 1 comment
-
Posted at 2018-01-14 by @MaBecker It takes some seconds to connect the AP
Posted at 2018-01-16 by @MaBecker Steps I do to have a working wifi after reboot. get official zip for 1v95, unzip and change to directory espruino_1v95_esp8266_4mb list of files:
first erase
than flash
result after flash
now setup wifi, save, reboot and check
Posted at 2018-01-16 by @MaBecker Wifi.save() is broken on espruino_1v95_esp8266_4mb_combined_4096.bin created issue #1309 |
Beta Was this translation helpful? Give feedback.
-
Posted at 2018-01-14 by DrAzzy
After flashing my ESP8266's, I do (ccharacters enclosed in <> are nonprinting chars - that's how hTerm represents them when you copy/paste):
var wifi = require("Wifi");<\r><\n>
wifi.connect("TwilightZone", {password: "ThePassword"}, function(err){if(err)console.log(err);else console.log("connected!");})<\r><\n>
Then once it prints connected, I do wifi.save() and power cycle the ESP8266 and see if it has an IP with wifi.getIP().
Under 1.94 this works on my WeMos D1 Mini.
Under 1.95 it does not.
When I give the command to connect, and it triggers the callback, instead of "connected", I get:
<\r><27>[Jconnected!<\r><\n>
(where <27> is ascii char code 27 aka 0x1B).
Note the extra CR, non-printing char, open bracket, and capitol J.
But it gets an IP and seems to work - until power cycle.
After powercycle, it does not come back, and I cannot connect to that network again (haven't tested other networks) until I reflash the ESP8266.
Are other people seeing this behavior?
Beta Was this translation helpful? Give feedback.
All reactions