voodootikigod / voodoospark

A RPC based firmware for a Spark Core device (like being connected, but without the wire!)
MIT License
145 stars 35 forks source link

Spark Core not responding when run over EC2 #29

Closed jochasinga closed 10 years ago

jochasinga commented 10 years ago

@voodootikigod After flashing the Core with voodoospark.cpp, I ran the example script in eg/blink.js remotely from inside Amazon's EC2, and there was no response until it threw an error:

events.js:72
        throw er; // Unhandled 'error' event
              ^
Error: connect ETIMEDOUT
    at errnoException (net.js:904:11)
    at Object.afterConnect [as oncomplete] (net.js:895:19)

I flashed it with my own functions and curl -d from the same EC2 instance and the led blinked. In the document you also mentioned "local." Can this firmware be used with spark-io remotely?

reconbot commented 10 years ago

I can confirm that the spark reports it's wifi address to spark-io over the spark cloud, and thus requires the computer running spark-io and the spark core itself to be on the same network.

rwaldron commented 10 years ago

To add to @reconbot's response: this is specific to voodoospark—in order to provide the low latency, it must be on the same network.