Avatar for user111636

user111636

Member since Apr 2020 • Last active May 2020
  • 2 conversations
  • 12 comments

Most recent activity

  • in ESP8266
    Avatar for user111636

    Btw: WLAN Modus is Mixed 802.11 g/n ...

  • in ESP8266
    Avatar for user111636

    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
    
  • in ESP8266
    Avatar for user111636

    Things like "debug", "logon" are not defined ...

  • in ESP8266
    Avatar for user111636

    Router is a DOCSIS 3.1 and there are just the options "off", "wpa2" and "wpa and wpa2"

  • in ESP8266
    Avatar for user111636

    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"
       }
     ]
    
  • in ESP8266
    Avatar for user111636

    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 ..

  • in ESP8266
    Avatar for user111636

    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.

  • in ESP8266
    Avatar for user111636

    The Problem is not the MC, because it connected to the mobil-hotspot of my phone. Problem with cryptic signs still there. Are there any Problems with wpa2?

  • in ESP8266
    Avatar for user111636

    Hello, so i have a problem with an esp8266 and the espruino-software. I flashed the brand new MC with espruino_2v05_esp8266 out of the 4mb directory and it seems to went successfull. But there are unreadable string in the console:

    
    >require("ESP8266").reboot();
    =undef&Ë5¡þ
     ets Jan  8 2013,rst cause:2, boot mode:(3,7)
    load 0x40100000, len 2408, room 16
    tail 8
    chksum 0xe5
    load 0x3ffe8000, len 776, room 0
    tail 8
    chksum 0x84
    load 0x3ffe8310, len 632, room 0
    tail 8
    chksum 0xd8
    csum 0xd8
    2nd boot version : 1.6
      SPI Speed      : 80MHz
      SPI Mode       : QIO
      SPI Flash Size & Map: 32Mbit(512KB+512KB)
    jump to run user1 @ 1000
    nÇròn|ìllll`bbrlânbnl`rlÄlþ
    

    and if I try to connect to WiFi:

    var wifi = require("Wifi");
    wifi.connect("my-ssid", {password: "stringofalphabeticsigns"},
       function(err){
      if(err)console.log(err);
      else console.log("connected!");
    });
    

    there just happens nothing.

    My Baud-rate is at 115200, i've no clue, please help.

Actions