• Sun 2019.04.28 mid-day

    Did a re-flash of 2v1. Uploaded the #9 example.

    joinWif() will not allow successful reliable communication unless I do the following, by hard coding a connect first. (which is what the web page is for, isn't it, to enter that detail on the fly?)

    wifi.connect("2WIRE113", {password: "3321205"},
    :  function(err){
    :  if(err)console.log(err);
    :  else console.log("connected!");
    :});
    

    Then in the browser: http://192.168.1.70:8080

    but with 2v1 I now get an immediate disconnect and what appears to be a fatal error:

    >joinWifi()
    =undefined
    >wifi.getAPDetails().ssid
    ="ESP_067BFF"
    >wifi.connect("2WIRE113", {password: "3321205"},
    :  function(err){
    :  if(err)console.log(err);
    :  else console.log("connected!");
    :});
    =undefined
    connected!
    >
     ets Jan  8 2013,rst cause:2, boot mode:(3,7)
    load 0x40100000, len 2408, room 16
    tail 8
    chksum 0xe5
    load 0x3ffe8000, len 776, room 0
    tail 8
    chksum 0x84
    load 0x3ffe8310, len 632, room 0
    tail 8
    chksum 0xd8
    csum 0xd8
    2nd boot version : 1.6
      SPI Speed      : 80MHz
      SPI Mode       : QIO
      SPI Flash Size & Map: 32Mbit(512KB+512KB)
    jump to run user1 @ 1000
    
    



    The end of console log

    Splitting for reset(), delay 250
    >>> Sent
    >>> Sending...
    ---> "wifi.getAPDetails().ssid"
    >>> Sent
    >>> Sending...
    ---> "wifi.connect(\"2WIRE113\", {password: \"3321205\"},\n  function(err){\n  if(err)console.log(err);\n  else console.log(\"connected!\");\n});"
    >>> Sent
    ERROR: RECEIVE ERROR: {"connectionId":3,"error":"frame_error"}­
    Disconnect callback...
    WARNING: [notify_warn] Disconnected
    >>> Disconnected
    



    Just noticed from line #27 above, that the content there differs from what the WebIDE returns 32Mbit vs 4MB - important?

    >reset(1)
    Erasing saved code.
     ____                 _
    |  __|___ ___ ___ _ _|_|___ ___
    |  __|_ -| . |  _| | | |   | . |
    |____|___|  _|_| |___|_|_|_|___|
             |_| espruino.com
     2v01 (c) 2018 G.Williams
    Espruino is Open Source. Our work is supported
    only by sales of official boards and donations:
    http://espruino.com/Donate
    Flash map 4MB:512/512, manuf 0xe0 chip 0x4016
    > 
    
    >process.memory()
    ={ free: 1398, usage: 202, total: 1600, history: 228,
      gc: 0, gctime: 1.861 }
    >wifi.getAPDetails().ssid
    ="ESP_067BFF"
    

    Not sure if that gleans any insight.

About

Avatar for Robin @Robin started