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...
Espruino is a JavaScript interpreter for low-power Microcontrollers. This site is both a support community for Espruino and a place to share what you are working on.
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) {
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.