Open Access Point Issues

Posted on
  • I'm trying to setup a temporary open access point and no matter what I do, when I upload it to Flash, the console reports an "Uncaught Error: Password must be at least 8 characters"

    WIFI.startAP(####, (err)=>{});
    

    and

    WIFI.startAP(####, {  authMode: 'open' }, (err)=>{});
    

    Board Information
    VERSION 2v06
    GIT_COMMIT 21168a2b
    BOARD ESPRUINOWIFI
    MODULES Flash,Storage,heatshrink,fs,net,dgram,tl­s,http,NetworkJS,WIZnet,tv,crypto,neo ...

    Has anyone else run into this and have a workaround other than setting a password?

    Thanks!

  • Sorry, this looks like a bug. It seems like you can just work around it by specifying a password (which will then get ignored):

    wifi.startAP('EspruinoAP', { password: '0123456789', authMode: 'open' }, function(err) {
      if (err) throw err;
      console.log("Connected!");
    });
    

    However I've just made some fixes so the next version of the Espruino WiFi firmware won't have this issue.

  • Awesome! Thank you!

  • Post a reply
    • Bold
    • Italics
    • Link
    • Image
    • List
    • Quote
    • code
    • Preview
About

Open Access Point Issues

Posted by Avatar for Ken @Ken

Actions