You are reading a single comment by @Wilberforce and its replies. Click here to read the full conversation.
  • I have a compiled version on Windows 10 working. This also works out of the box which looks promising:
    make USE_CRYPTO=1 USE_TLS=1 USE_GRAPHICS=1 USE_AES=1

    This means potentially we will be able to use https:// to hit other sites.

    This is working:

    require("http").get("http://www.google.c­om", function(res) {
      res.on('data', function(data) { console.log(data);    });
    });
    
    ={ "type": 1,
      "#onconnect": function (res) { ... },
      "res": {  },
      "opt": {
        "protocol": "http:",
        "method": "GET",
        "host": "http://www.google.com",
        "path": "/",
        "pathname": "/",
        "search": null, "port": null, "query": null },
      "dSnd": "GET / HTTP/1.0\r\nU" ... "ww.google.com\r\n\r\n",
      "sckt": 3 }
    <HTML><HEAD><meta http-equiv="content-type" content="text/html;charset=utf-8">
    <TITLE>302 Moved</TITLE></HEAD><BODY>
    <H1>302 Moved</H1>
    The document has moved
    <A HREF="http://www.google.co.nz/?gfe_rd=cr­&amp;ei=HtMvWK6XD9TN8genzLygCQ">here</A>­.
    </BODY></HTML>
    

    however this errors:

    require("http").get("https://www.google.­com", function(res) {
    :  res.on('data', function(data) { console.log(data);    });
    :});
    
    Connecting with TLS...
    ERROR: Unable to create socket
    ={ "type": 5,
      "#onconnect": function (res) { ... },
      "res": {  },
      "opt": {
        "protocol": "https:",
        "method": "GET",
        "host": "http://www.google.com",
        "path": "/",
        "pathname": "/",
        "search": null, "port": null, "query": null },
      "dSnd": "GET / HTTP/1.0\r\nU" ... "ww.google.com\r\n\r\n",
      "closeNow": true }
    

    I've also got issues with save() - if you do this it appears to corrupt the flash memory and the board won't boot on reset and needs to be re-flashed. I've put more detail on the gitter.im feed

About

Avatar for Wilberforce @Wilberforce started