This seems to work ok for me .. with this code for example ..
E.enableWatchdog(10); var eth = require("WIZnet").connect(); eth.setIP(); var http = require("http"); http.get("http://www.bbc.co.uk", function(res) { res.on('data', function(data) { console.log(data); }); });
So I get back the contents of whatever page I specify .. http://www.bbc.co.uk here
Though it only works once unless I reboot in between .. executing the same code twice gives me a "ERROR: Socket error -7 while sending"
@Pat started
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.
This seems to work ok for me .. with this code for example ..
So I get back the contents of whatever page I specify .. http://www.bbc.co.uk here
Though it only works once unless I reboot in between .. executing the same code twice gives me a "ERROR: Socket error -7 while sending"