Avatar for rocky_manobi

rocky_manobi

Member since May 2014 • Last active Jun 2014
  • 1 conversations
  • 2 comments

Most recent activity

  • in Interfacing
    Avatar for rocky_manobi

    You mean that you have saved the code?

    yes, that's exactly what I meant.
    And thank you so much, your help solved my problem.

    I also understand the other tips.

    thanks a lot! :)

  • in Interfacing
    Avatar for rocky_manobi

    Hi.
    I'm trying to run some program with a CC3000 WiFi module as Stand Alone Mode.
    The program below( mostly, on the sample codes ) is working as I expected when it runs with WebIDE, but not when it's on Stand Alone Mode.

    console.log("START!!!");
    
    LED3.write(true);
    var http = require("http");
    var wlan = require("CC3000").connect();
    var h = wlan.connect( "xxxxxx", "yyyyyyy", function (s) { 
      if (s=="dhcp") {
        require("http").get("http://192.168.100.100:3000/sample_requests", function(res) {
          LED2.write(true);
          res.on('data', function(data) {
            console.log(">" + data);
          });
        });
      }
      
    });
    

    On Stand Alone Mode( after press the RESET BTN ), I'm geting this error below.

    ERROR: Not connected to the internet
    

    Here is the other information.

    • Espruino is powered by USB.
    • It seems like too first for connecting to WiFi network.( like a moment )
    • it seems like connect method is done successfully, because 'require("cc3000").connect().connect( "accesspointname", "wpa2key", function() { })' returns true value

    Is there any step that I missed?

    Thanks!

Actions