You are reading a single comment by @dervondenbergen and its replies. Click here to read the full conversation.
  • I just tested something else and noticed, that it works if i wrap all the wifi code in a function like this:

    var wlan;
    
    function init(){
      wlan = require("CC3000").connect();
      wlan.connect( "AccessPointName", "WPA2key", function (s) { 
        if (s=="dhcp") {
          require("http").get("http://www.pur3.co.uk/hello.txt", function(res) {
            res.on('data', function(data) {
              console.log(">" + data);
            });
          });
        }
      });
    }
    
    init();
    

    It would be good if this gets reflected in the CC3000 manual.

About