user111636
Member since Apr 2020 • Last active Jul 2020Most recent activity
-
- 14 comments
- 5,953 views
-
So, here is what i come up with:
var wifi = require("Wifi"); var doit; var ssid = 'Vodafone-8751'; var passwort = 'ABCDEfGh1jKLmnoP'; wifi.stopAP(); wifi.disconnect(); function lan() { wifi.connect(ssid, {password: passwort}, function(s) { if (s === 'bad_password') { doit = true; console.log('Es ist ein Fehler aufgetreten: ' + s); console.log('Verbindungsversuch gestartet ...'); lan(); } if (s != 'bad_password') { console.log('Es ist ein Fehler aufgetreten: ' + s); console.log('Verbindungsversuch wird abgebrochen.'); } }); console.log(wifi.getIP().ip); } // Ende: lan() setTimeout(lan,500); wifi.on('connected', function(s) { console.log('Es hat endlich geklappt, Verbindungsstatus: ' + s); if (doit) { doit = false; } });
and get stock in:
0.0.0.0 Es ist ein Fehler aufgetreten: bad_password Verbindungsversuch gestartet ... 0.0.0.0 Es ist ein Fehler aufgetreten: bad_password Verbindungsversuch gestartet ... 0.0.0.0 Es ist ein Fehler aufgetreten: bad_password Verbindungsversuch gestartet ... 0.0.0.0
-
-
-
require("Wifi").scan((arrayOfAcessPointsÂ) =>{print(arrayOfAcessPoints);});
Output:
[ { "rssi": -60, "channel": 1, "authMode": "wpa2", "isHidden": false, "ssid": "Vodafone-8751", "mac": "2c:58:4f:92:a7:21" }, { "rssi": -66, "channel": 11, "authMode": "wpa2", "isHidden": false, "ssid": "Vodafone-3E7C", "mac": "88:71:b1:a7:21:d3" } ]
-
Doesn't make any difference, sorry.
var wifi = require("Wifi"); wifi.connect("Vodafone-8751", { password: "ABCDEfGh1jKLmnoP", //Password is like this channel: 1, bssid: "2C:58:4F:92:A7:21"}, function(err){ if (err) console.log(err); else console.log("connected!"); });
Is there any chance, that espruino converts the pw-string not correctly? How i said, it works without any problems at a esp32 with regular firmware. It is really strange because even with the espruino i was able to connect to the hotspot of my mobile-phone. Security-standard of my wlan-router is WPA2-Personal, whatever "Personal" meens ..
-
Gentlemen,
i've a problem:
____ _ | __|___ ___ ___ _ _|_|___ ___ | __|_ -| . | _| | | | | . | |____|___| _|_| |___|_|_|_|___| |_| espruino.com 2v05 (c) 2019 G.Williams Espruino is Open Source. Our work is supported only by sales of official boards and donations: http://espruino.com/Donate Flash map 4MB:512/512, manuf 0x20 chip 0x4016
I try to connect to an ap via:
var wifi = require("Wifi"); wifi.connect("Bratatatat-666", {password: "SomeThiNGLIKeTh8t"}, function(err){ if(err)console.log(err); else console.log("connected!"); });
and i get "bad password" or stock in "connecting" but i can swear the password is absolutely correct. 100%!11!!1!
My router is available on 2.4 and 5 GHz and with another MC, wich is not flashed with Espruino, there is no problem to connect.
Please help!
If i connect to an mobile-hotspot, wich has password like "espruino1337", the connection is successfull.
-
- 5 comments
- 2,218 views
-
I try to request a "https"-page and to read out the same code as is displayed within the development-tools in the browser.
Edit: It's a fact that my problem is that javascript doesn't work with my ESP like it's working in the browser. Because if i deactivate javascript in the browser, the page shows the same values as is displayed by the request with the ESP.
Many thanks for your suggestions @AkosLukacs, i'll try it first with node.js.
Greets
O
Btw: WLAN Modus is Mixed 802.11 g/n ...