You are reading a single comment by @hansamann and its replies. Click here to read the full conversation.
  • Hi all,

    I am very often using Google App Engine to host APIs and I have an API up here

    http://hybrisiot.appspot.com/shelves/default

    If you call this with a browser or curl, it will respond with a bunch of JSON. It will take longer upon the first request because GAE just fires up the app, but then from the second request it is pretty fast.

    Now, with the CC3000 connected, I try to get that JSON response. But I get this in the console:

    ERROR: Unable to locate host
    ERROR: Timeout in CC3000 driver (4107)
    Looks like CC3000 has died again. Power cycling...

    Below is the espruino js code.

    require("http").get("http://hybrisiot.appspot.com/shelves/default", function(res) {

      res.on('data', function(data) {
        console.log(data);
      });
    });
    

    I also tried to use the raw request method - could someone maybe also post an example for a POST with url-encoded body? That woudl be awesome.

About

Avatar for hansamann @hansamann started