var 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);
});
});
}
});
Does not work for you at all, or just does not work after you have save()d it to the board?
When I've done that before I was pretty sure that it worked, but it took a few seconds before the prompt appeared again, as the two connect functions take a while to execute.
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.
Thanks for letting us know - you mean typing:
Does not work for you at all, or just does not work after you have
save()
d it to the board?When I've done that before I was pretty sure that it worked, but it took a few seconds before the prompt appeared again, as the two
connect
functions take a while to execute.