You are reading a single comment by @ert4 and its replies. Click here to read the full conversation.
  • Hello, the javascript code i have keeps giving me the error "module wifi not found", The picture is what my pico looks like.
    ---------------------------------------- Java Script
    var wifi = require("wifi");
    var ssid = "Temp-Student";
    var pw = "TempStu1";
    wifi.connect(ssid, {password:pw}, function(err){
    console.log("connected? err=", err, "info=", wifi.getIP());
    });
    wifi.stopAP();
    ---------------------------------------- Console


    | |_ ___ ___ _ ||___ ___
    | |_ -| . | _| | | | | . |
    |
    || || |_|||_|_|

          |_| http://espruino.com
    

    1v83 Copyright 2015 G.Williams

    echo(0);
    ERROR: SD card must be setup with E.connectSDCard first
    WARNING: Module "Wifi" not found
    Uncaught Error: Field or method "connect" does not already exist, and can't create it on undefined
    at line 1 col 5
    wifi.connect(ssid, {password:pw}, function(err){

    ^
    

    Uncaught Error: Field or method "stopAP" does not already exist, and can't create it on undefined
    at line 1 col 5
    wifi.stopAP();

    ^
    

    =undefined


    1 Attachment

    • Capture.PNG
About

Avatar for ert4 @ert4 started