You are reading a single comment by @Pat and its replies. Click here to read the full conversation.
  • 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.

About

Avatar for Pat @Pat started