The error means that the module didn't return "OK" after CIPSTART was called (for creating a TCP connection). You could try adding a delay between when the connection is established and when you do the first request? Maybe it's that your WiFi router takes longer than mine to give the ESP8266 an IP address?
Maybe also try calling wifi.at.debug() - it'll show you what's getting sent and returned to the WiFi module.
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.
The error means that the module didn't return
"OK"
afterCIPSTART
was called (for creating a TCP connection). You could try adding a delay between when the connection is established and when you do the first request? Maybe it's that your WiFi router takes longer than mine to give the ESP8266 an IP address?Maybe also try calling
wifi.at.debug()
- it'll show you what's getting sent and returned to the WiFi module.