• Hi!

    Could you post the whole code and step by step process you followed? The tests are not ready-to-use scripts to use on the boards. One needs to wait for the network to connect etc...

    Perhaps you can test the captive portal script available at https://github.com/espruino/Espruino/issues/1221. That one seems to be ready to be sent from the IDE and should give you an access point which renders a web page when connected to from a phone.

    Best Regards
    Standa

  • Hi @opi / Standa.

    I checked the code of CaptivePortal now, looks simple. Is is really working already? I mean does it receive the incoming DNS messages? This is the corner stone that I cannt succeed so far.

    For my tests I used test_dgram_socket.js AS-IS without modifications - it did not work.
    Than I added at the top of the script just few lines that connect to my local Wifi, nothing else. Unfortunatelly it did not help either. Here are extra lines, after it starts I see new IP device on my network (I can also ping it)

    var wifi = require("Wifi");
    wifi.connect("my-ssid", {password:"my-pwd"}, function(err){
    console.log("connected? err=", err, "info=", wifi.getIP());
    });
    wifi.stopAP();

About

Avatar for Vasily @Vasily started