OK, what happens is that it seems to hang on the first line, the connect doesn't seem to return anything, if I add a console.log before and after that line, only the first line is output.
console.log("start"); // yes i see this
var wlan = require("CC3000").connect();
console.log("damn it");// I don't get here
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);
});
});
}
});
I am not the best in the world at soldering, it's possible that my pins are not soldered perfectly, I'll need to check those I guess. Do any of the LEDs on the CC3000 light up at all, nothing seems to on mine.
Espruino is a JavaScript interpreter for low-power Microcontrollers. This site is both a support community for Espruino and a place to share what you are working on.
OK, what happens is that it seems to hang on the first line, the connect doesn't seem to return anything, if I add a console.log before and after that line, only the first line is output.
I am not the best in the world at soldering, it's possible that my pins are not soldered perfectly, I'll need to check those I guess. Do any of the LEDs on the CC3000 light up at all, nothing seems to on mine.