• I changed it to this, at least for now:

        const wifi = require("EspruinoWiFi");
        function getIP() {
            wifi.getIP(function(err, info) {
                if (err) setTimeout(getIP, 1000)
                console.log('IP:', info.ip)
            });
        }
        getIP();
    

    Could it be better?

About

Avatar for trusktr @trusktr started