Most recent activity
-
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:
<HTML> <HEAD> <TITLE>Moved Permanently</TITLE> </HEAD> <BODY BGCOLOR="#FFFFFF" TEXT="#0000 00"> <H1>Moved Permanently</H1> The document has moved <A HREF="https://script.google.com/macros/s/AKfycbwVqXlMKJ_g0OQtR4uyxuVLw EhuoqR8Q-kJsCWnxBt2b7irdWi1/exec?ras=test">here</A>. </BODY> </HTML>
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.
https://docs.google.com/spreadsheets/d/1YM2-_LCWUR0dYllsRMAn_6B5OKLXD7_vVnABzJUqnMg/edit?usp=sharing
The data gets logged in the "Data" sheet.
-
-
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.
-
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.
-
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"); }).listen(8080);
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/commit_date/2014-04-14%2019:20:19%20+0100/espruino_1v62_espruino_1r3_wiznet.bin
Any ideas?
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).