Avatar for io2work


Member since Apr 2014 • Last active Mar 2015
  • 0 conversations

I enjoy working in the space between Engineering and Manufacturing via IT. I like to use modern web technologies to remove platform and legacy hardware dependencies by creating browser/server based applications for manufacturing environments (e.g. using Node.js with the serial port module running on a Raspberry Pi to control manufacturing equipment from the browser).

Most recent activity

  • in General
    Avatar for io2work

    Things are definitely working better... but I am still having issues with http.get().

    I am attempting to do an http.get() to a Google Apps Content Service... this is what gets returned from the GET:

    <TITLE>Moved Permanently</TITLE>
    <H1>Moved Permanently</H1>
    The document has moved <A HREF="https://script.google.com/macros/s­/AKfycbwVqXlMKJ_g0OQtR4uyxuVLw

    I know the content service works because you can just copy and paste that url in any browser and it will log the data in my Google Spreadsheet as expected. Is it an issue with it being https?

    This is the link to the live Google Spreadsheet if anyone wants to play with it.


    The data gets logged in the "Data" sheet.

  • in General
    Avatar for io2work

    FYI, DNS seems to work within our LAN but it does not work outside of our LAN.

  • in General
    Avatar for io2work

    I have also had some success with the http server, but I am definitely having the DNS issue as described by @Gordon above.

    Additionally, it is still not always properly reading the WIZnet MAC address for me... the last two sets of HEX digits are sometimes wrong such as right now where it reads 00:08:dc:1d:a2:ff but it is actually marked 00:08:dc:1d:4f:44.

    If I completely disconnect both the USB power cable and the network jack and then plug everything back in, it will generally start off by reading it properly.

  • in General
    Avatar for io2work

    I don't believe I ever got the server working either... port 80 seems to be open by default right after I send code to the Espruino... even if I have my code set to listen on another port such as 8080 (like in my example) it will be port 80 that is open temporarily?

    Basically, the WIZ550io is pretty much useless with the Espruino as-is... which is a bummer for me because it is the last piece of the puzzle for my project I am working on.

  • in General
    Avatar for io2work

    I am not having any luck with the WIZ550io myself. The DHCP deal with eth.setIP() seems to mostly work (although the MAC address is never correct) but it does grab a valid IP, and set the Subnet, Gateway & DNS appropriately. I can then ping it without issue. If I use a port scanner, I can see that port 80 is open right after I flash code to the Espruino but if I scan a couple of times the port will eventually be closed and if I actually try and point a browser to the IP the port will close immediately. If I try to use another port, such as 8080, it will never show up as open. I've been trying to use the simple code below without success?

    var eth = require("WIZnet").connect();
    var http = require("http");
    http.createServer(function (req, res) {
      res.writeHead(200, {'Content-Type': 'text/plain'});
      res.end("Hello World"); 

    If I try to do an http.get I just get the "Socket error -7" message.

    I have two duplicate setups and I get the same results with both.

    I've been using the latest binary located at http://www.espruino.com/binaries/git/com­mit_date/2014-04-14%2019:20:19%20+0100/e­spruino_1v62_espruino_1r3_wiznet.bin

    Any ideas?