ESP 8266 ESP 01 = Module Wifi not found

Posted on
  • ESP 8266 ESP 01 = Module Wifi not found

    Hello Everyone,
    A noob question.

    Using the web ide I am trying to run the sample

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

    My firmware version is espruino_1v94_esp8266_combined_512.bin
    Anyone seen this before?
    Is there a reason the device will not use the wifi library from the firmware?
    Thanks
    =AnotherCoder

    LOG From console:
    loadModule(Wifi)
    ERROR: getURL("https://www.espruino.com/modules/Wifi.min.js") error : Not Found
    ERROR: getURL("https://www.espruino.com/modules/Wifi.js") error : Not Found
    WARNING: [notify_warn] Module Wifi not found
    Found a prompt... great!

    Sending...
    ---> "\u0010reset();\n\u0010Modules.removeAllCached();\n\u0010var wifi = require(\"Wifi\");\n\u0010wifi.connect(\"mywifi\", {password:\"mypassword\"}, function(err){\u001b\n console.log(\"connected? err=\", err, \"info=\", wifi.getIP());\u001b\n});\n\u0010wifi.stopAP();\n\n"
    Splitting at "reset();\n", delay 250
    Sent

  • Using the web ide...

    Are you uploading the code in the edit pane by clicking the Send to Espruino button?

  • Do you get a usable command prompt on the left, or nothing? If nothing, you may have forgotten to set the baud rate to 115200.

    If you disconnect and reconnect then it may work - problem is Espruino wasn't able to communicate with the board properly when you connected so it wasn't aware that it was an ESP8266 which has a Wifi module.

  • Hi Gordon and allObjects,
    Yes I am uploading using send to epruino button.
    I am attaching a screen shot of my IDE and console.
    I get the prompt in the left pane but can not type anything there.
    Where do I set the baud rate?
    Thank you the prompt responses.


    2 Attachments

    • console.png
    • webide.png
  • The firm version I have flashed is espruino_1v94_esp8266_combined_512.bin

  • You set the baud rate in the Settings (same place as you found the console) under 'Communications'.

    If you're not aware it exists then I'd be almost certain that's your problem.

  • hi Gordon,
    My baud rate was not 115200. I changed it to 115200 still the same problem.
    console log looks just the same and no usable command prompt.
    Thanks

  • Did you disconnect and reconnect? What you're seeing is because the IDE is not able to communicate with Espruino - that could either be some communication issue, or it might be that Espruino isn't running on your ESP8266 at all!

  • Disconnecting and reconnecting did the trick! Thanks for all your help. I am very excited!

  • Hi...i am a new user here. I also faced the same issue. As per my experience if you disconnect and reconnect then it may work - problem is Espruino wasn't able to communicate with the board properly when you connected so it wasn't aware that it was an ESP8266 which has a Wifi module.

  • disconnect and reconnect then it may work

    This tends to happen straight after flashing. If you connect with putty(windows) or minicom(Linux) after flashing, and then disconnect, you can then connect with the ide.

    I think it is related to the state of the com/tty port after flashing...

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

ESP 8266 ESP 01 = Module Wifi not found

Posted by Avatar for user83752 @user83752

Actions