This code ..
E.enableWatchdog(10); var eth = require("WIZnet").connect(); eth.setIP({ ip : "192.168.254.248", dns : "208.67.222.222", gateway: "192.168.254.100" }); var http = require("http"); http.get("http://www.espruino.com", function(res) { res.on('data', function(data) { console.log(data); }); });
works once and the console fills up with the HTML returned. If you try to run again, you get
reset(); =undefined .... 1v61 Copyright 2014 G.Williams echo(0); =undefined ERROR: Socket error -7 while sending
So sort of heading in the right direction. Totally mystified by the DHCP behaviour really. Can't persuade the server code to work at all.
@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 code ..
works once and the console fills up with the HTML returned. If you try to run again, you get
So sort of heading in the right direction. Totally mystified by the DHCP behaviour really. Can't persuade the server code to work at all.