-
• #2
Ahh, ok. I think your issue is you're not using the right module for the ESP8266 firmware - unfortuntely the two are different enough that a different module is needed. Try:
var wifi = require("ESP8266WiFi_0v25").connect(Serial2, function(err) { ... });
I've just updated my ESP8266 to 0.25.0.0(Jun 12 2015 20:26:28) (returned by AT+GMR) so I guess I'm on the current version.
I connected the ESP8266 to my Pico's Serial1 port and use a 10uF Cap between the 3.3V and GND on the ESP. When I ran the test script I got a CIPSTART fail, but after reading http://forum.espruino.com/conversations/265995/ I added a timeout before making the call.
I get the following output:
I can ping the module on IP provided by CIFSR:STAIP but I don't get a response from the GET call.
So I wonder what the error exactly means and how I can fix it. Thanks!