You are reading a single comment by @Gordon and its replies. Click here to read the full conversation.
  • 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:

    version = 0018000902-AI03, resetting wifi
    APs: [[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]]
    

    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?).

About

Avatar for Gordon @Gordon started