The syntax error is fine - it's just complaining about the newline before reset (which is needed just in case you reset Espruino in the middle of a command last time).
The getAPs failure is odd though. I just tried your exact code here and it works for me:
So I'm not really sure what the issue is. Have you tried connecting to a known access point? Does that fail as well?
I guess it could be something to do with the state the ESP8266 comes in out of the box. I think it comes pre-configured as an Access Point, and maybe you can only list other APs by disabling that (which trying to connect to an AP first would solve?).
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 syntax error is fine - it's just complaining about the newline before reset (which is needed just in case you reset Espruino in the middle of a command last time).
The getAPs failure is odd though. I just tried your exact code here and it works for me:
So I'm not really sure what the issue is. Have you tried connecting to a known access point? Does that fail as well?
I guess it could be something to do with the state the ESP8266 comes in out of the box. I think it comes pre-configured as an Access Point, and maybe you can only list other APs by disabling that (which trying to connect to an AP first would solve?).