Avatar for Sacha

Sacha

Member since Feb 2014 • Last active Mar 2018
  • 41 conversations
  • 222 comments

Most recent activity

  • in Pico / Wifi / Original Espruino
    Avatar for Sacha

    Hello Gorden
    Tested it about 30 minutes. Crashing is fixed i think. A lot of garbage, that i will filter out.
    Here is the output:

    UDP Msg: 192.168.68.13:59683 - {"type":"SYS","name":"_M","cfg":187}
    UDP Msg: 192.168.68.13:59683 - {"type":"SYS","nam
    UDP Msg: 101.34.58.34:19807 - "cfg":187}
    UDP Msg: 192.168.68.13:59683 - {"type":"SYS","name":"_M","cfg":187}
    UDP Msg: 192.168.68.13:59683 - {"type":"SYS","name":
    UDP Msg: 34.95.77.34:8748 - g":187}
    UDP Msg: 192.168.68.13:59683 - {"type":"SYS","name":"_M","cfg":187}
    UDP Msg: 192.168.68.13:59683 - {"type":"SYS","name":"_M","cfg":187}
    UDP Msg: 192.168.68.13:59683 - {"type":"SYS","name":"_M","cfg":187}
    UDP Msg: 192.168.68.13:59683 - {"type":"SYS","name":"_M","cfg":187}
    UDP Msg: 192.168.68.13:59683 - {"type":"SYS","name":"_M","cfg":187}
    UDP Msg: 192.168.68.13:59683 - {"type":"SYS","name":"_M"
    UDP Msg: 44.34.99.102:8807 - 87}
    UDP Msg: 192.168.68.13:59683 - {"type":"SYS","name":"_M","cfg":187}
    UDP Msg: 192.168.68.13:59683 - {"type":"SYS","nam
    UDP Msg: 101.34.58.34:19807 - "cfg":187}
    UDP Msg: 192.168.68.13:59683 - {"type":"SYS","name":"_M","cfg":187}
    UDP Msg: 192.168.68.13:59683 - {"type":"SYS","name":"_M","cfg":187}
    UDP Msg: 192.168.68.13:59683 - {"type":"SYS","name":"_M","cfg":187}
    UDP Msg: 192.168.68.13:59683 - {"type":"SYS","name":"_M","cfg":187}
    UDP Msg: 192.168.68.13:59683 - {"type":
    UDP Msg: 34.83.89.83:11298 - ame":"_M","cfg":187}
    UDP Msg: 192.168.68.13:59683 - {"type"
    UDP Msg: 58.34.83.89:8787 - name":"_M","cfg":187}
    UDP Msg: 192.168.68.13:59683 - {"type":"SYS","name":"_M","cfg":187}
    UDP Msg: 192.168.68.13:59683 - {"type":"SYS","name":"_M","cfg":187}
    UDP Msg: 192.168.68.13:59683 - {"type":"SYS","n
    UDP Msg: 97.109.101.34:8762 - ","cfg":187}
    UDP Msg: 192.168.68.13:59683 - {"type":"SYS","name":"_M","cfg":187}
    UDP Msg: 192.168.68.13:59683 - {"type":"SYS","name":"_M","cfg":187}
    UDP Msg: 192.168.68.13:59683 - {"type":"SYS","name":"_M","cfg":187}
    UDP Msg: 192.168.68.13:59683 - {"type":"SYS","name":"_M","cfg":187}
    UDP Msg: 192.168.68.13:59683 - {"type":
    UDP Msg: 34.83.89.83:11298 - ame":"_M","cfg":187}
    UDP Msg: 192.168.68.13:59683 - {"type":"SYS","name":"
    UDP Msg: 95.77.34.44:25378 - ":187}
    UDP Msg: 192.168.68.13:59683 - {"type":"SYS","name":"_M","cfg":187}
    UDP Msg: 192.168.68.13:59683 - {"type":"SYS","name":"_M","cfg":187}
    UDP Msg: 192.168.68.13:59683 - {"type":"SYS","name":"_M","cfg":187}
    UDP Msg: 192.168.68.13:59683 - {"type"
    UDP Msg: 58.34.83.89:8787 - name":"_M","cfg":187}
    UDP Msg: 192.168.68.13:59683 - {"type":"
    UDP Msg: 83.89.83.34:8748 - me":"_M","cfg":187}
    UDP Msg: 192.168.68.13:59683 - {"ty
    UDP Msg: 112.101.34.58:21282 - ","name":"_M","cfg":187}
    

    Thanks Gorden for fixing the crash that fast.

    Sacha

  • in Pico / Wifi / Original Espruino
    Avatar for Sacha

    Hi Gordon
    Thank you very much. Will give you feedback as soon as i have tested it.
    Regards
    Sacha

  • in Pico / Wifi / Original Espruino
    Avatar for Sacha

    Last message for today Gordon.
    I managed to capture a crash using the isolated code above with debug enabled.
    I changed the UDP server code to send a UDP package each 100ms and not every 10 seconds.

    ] "\r\n+IPD,0,36,1"
    ] "92.168.68.13,51158:{\"type\":\"SYS\",\"­name\":\"_M\",\"cfg\":187}"
    UDP Msg: 192.168.68.13:51158 - {"type":"SYS","name":"_M","cfg":187}
    OK:187
    ] "\r\n+IPD,0,36,192."
    ] "168.68.13,51158:{\"type\":\"SYS\",\"nam­e\":\"_M\",\"cfg\":187}"
    UDP Msg: 192.168.68.13:51158 - {"type":"SYS","name":"_M","cfg":187}
    OK:187
    ] "\r\n+IP"
    ] "D,0,36,192.168.68.13,51158:{\"type\":\"­SYS\",\"name\":\"_M\",\"cfg\":187}"
    UDP Msg: 192.168.68.13:51158 - {"type":"SYS","name":"_M","cfg":187}
    OK:187
    ] "\r\n+IPD,0,36,192.168.68.13"
    ] ",51158:{\"type\":\"SYS\",\"name\":\"_M\­",\"cfg\":187}"
    UDP Msg: 192.168.68.13:51158 - {"type":"SYS","name":"_M","cfg":187}
    OK:187
    ] "\r\n"
    ] "+IPD,0,36,192.168.68.13,51158:{\"type\"­:\"SYS\",\"name\":\"_M\",\"cfg\":187}"
    UDP Msg: 192.168.68.13:51158 - {"type":"SYS","name":"_M","cfg":187}
    OK:187
    ] "\r\n+"
    ] "IPD,0,36,192.168.68.13,51158:{\"type\":­\"SYS\",\"name\":\"_M\",\"cfg\":187}"
    UDP Msg: 192.168.68.13:51158 - {"type":"SYS","name":"_M","cfg":187}
    OK:187
    ] "\r\n+IPD,0,36,192.168.68."
    ] "13,51158:{\"type\":\"SYS\",\"name\":\"_­M\",\"cfg\":187}"
    UDP Msg: 192.168.68.13:51158 - {"type":"SYS","name":"_M","cfg":187}
    OK:187
    ] "\r\n+IPD,0,36"
    ] ",192.168.68.13,51158:{\"type\":\"SYS\",­\"name\":\"_M\",\"cfg\":187}"
    UDP Msg: 192.168.68.13:51158 - {"type":"SYS","name":"_M","cfg":187}
    OK:187
    ] "\r\n+IPD,0,36,192.168.68.13,"
    ] "51158:{\"type\":\"SYS\",\"name\":\"_M\"­,\"cfg\":187}"
    UDP Msg: 192.168.68.13:51158 - {"type":"SYS","name":"_M","cfg":187}
    OK:187
    ] "\r\n+IPD,0,36,192.1"
    ] "68.68.13,51158:{\"type\":\"SYS\",\"name­\":\"_M\",\"cfg\":187}"
    UDP Msg: 192.168.68.13:51158 - {"type":"SYS","name":"_M","cfg":187}
    OK:187
    ] "\r\n+IPD"
    ] ",0,36,192.168.68.13,51158:{\"type\":\"S­YS\",\"name\":\"_M\",\"cfg\":187}"
    UDP Msg: 192.168.68.13:51158 - {"type":"SYS","name":"_M","cfg":187}
    OK:187
    ] "\r"
    ] "\n+IPD,0,36,192.168.68.13,51158:{\"type­\":\"SYS\",\"name\":\"_M\",\"cfg\":187}"­
    UDP Msg: 192.168.68.13:51158 - {"type":"SYS","name":"_M","cfg":187}
    OK:187
    ] "\r\n+IPD,0,36,192.168"
    ] ".68.13,51158:{\"type\":\"SYS\",\"name\"­:\"_M\",\"cfg\":187}"
    UDP Msg: 192.168.68.13:51158 - {"type":"SYS","name":"_M","cfg":187}
    OK:187
    ] "\r\n+IPD,0,3"
    ] "6,192.168.68.13,51158:{\"type\":\"SYS\"­,\"name\":\"_M\",\"cfg\":187}"
    UDP Msg: 192.168.68.13:51158 - {"type":"SYS","name":"_M","cfg":187}
    OK:187
    ] "\r\n+IPD,0,36,192.168.68.13,51158:{\"ty­pe\":\"SYS\",\"name\":\"_M\",\"cfg"
    UDP Msg: 192.168.68.13:51158 - {"type":"SYS","name":"_M","cfg
    ERR: UPD packet not JSON, ignore
    --- crash ----
    

    The last message was truncated to. Not two chars.

    I think you should be abe to reproduce it with my isolated code. Just change the linux server to 100ms and enable debug on the espruino side.

  • in Pico / Wifi / Original Espruino
    Avatar for Sacha

    Next test in isolated code. Turbomode enabled debug not enabled. It crashed too.

    UDP Msg: 192.168.68.13:45962 - {"type":"SYS","name":"_M","cfg":187}
    OK:187
    UDP Msg: 192.168.68.13:45962 - {"type":"SYS","name":"_M"
    ERR: UPD packet not JSON, ignore
    UDP Msg: 44.34.99.102:8807 - 87}
    ERR: UPD packet not JSON, ignore
    UDP Msg: 192.168.68.13:45962 - {"type":"SYS","name":"_M","cfg":187}
    OK:187
    UDP Msg: 192.168.68.13:45962 - {"type":"SYS","name":"_M","cfg":187}
    OK:187
    UDP Msg: 192.168.68.13:45962 - {"type":"SYS","name":"_M","cfg":187}
    OK:187
    UDP Msg: 192.168.68.13:45962 - {"type":"SYS","name":"_M","cfg":187}
    OK:187
    UDP Msg: 192.168.68.13:45962 - {"type":"SYS","name":"_M","cfg":187}
    OK:187
    UDP Msg: 192.168.68.13:45962 - {"type":"SYS","name":"_M","cfg":187}
    OK:187
    UDP Msg: 192.168.68.13:45962 - {"type":"SYS","name":"_M","cfg":187}
    OK:187
    UDP Msg: 192.168.68.13:45962 - {"t
    ERR: UPD packet not JSON, ignore
    UDP Msg: 121.112.101.34:8762 - S","name":"_M","cfg":187}
    ERR: UPD packet not JSON, ignore
    UDP Msg: 192.168.68.13:45962 - {"type":"SYS","name":"_M","cfg":187}
    OK:187
    UDP Msg: 192.168.68.13:45962 - {"type":"SYS","name":"_M","cfg":187}
    OK:187
    UDP Msg: 192.168.68.13:45962 - {"type":"SYS","name":"_M","cfg":187}
    OK:187
    UDP Msg: 192.168.68.13:45962 - {"type":"SYS","name":"_M","cfg":187}
    OK:187
    UDP Msg: 192.168.68.13:45962 - {"type":"SYS","name":"_M","cfg":187}
    OK:187
    UDP Msg: 192.168.68.13:45962 - {"type":"SYS","name":"_M","cfg":187}
    OK:187
    UDP Msg: 192.168.68.13:45962 - {"type":"SYS","name":"_M","cfg":187}
    OK:187
    UDP Msg: 192.168.68.13:45962 - {"type":"SYS","name":"_M","cfg":187}
    OK:187
    UDP Msg: 192.168.68.13:45962 - {"type":"SYS","name":"_M","cfg":187}
    OK:187
    UDP Msg: 192.168.68.13:45962 - {"type":"SYS","name":"_M","cfg":187}
    OK:187
    UDP Msg: 192.168.68.13:45962 - {"type":"SYS","name":"_M","cfg":187}
    OK:187
    UDP Msg: 192.168.68.13:45962 - {"type":"SYS","name":"_M","cfg":187}
    OK:187
    UDP Msg: 192.168.68.13:45962 - {"type":"SYS","name":"_M","cfg":187}
    OK:187
    UDP Msg: 192.168.68.13:45962 - {"type":"SYS","name":"_M","cfg":
    ERR: UPD packet not JSON, ignore
    -- crash --
    
  • in Pico / Wifi / Original Espruino
    Avatar for Sacha

    I enabled turbomode in the isolated code and the mixed up data is shown up. I was able to catch debug code. Did not crash.

    ____                 _
    |  __|___ ___ ___ _ _|_|___ ___
    |  __|_ -| . |  _| | | |   | . |
    |____|___|  _|_| |___|_|_|_|___|
             |_| espruino.com
     1v96 (c) 2017 G.Williams
    >
    =undefined
    >save();
    =undefined
    Compacting Flash...
    Calculating Size...
    Writing..
    Compressed 114368 bytes to 26882
    pong
    Connected: 192.168.68.158
    ["AT+CIPSTART=0,\"UDP\",\"255.255.255.25­5\",7077,7077,2\r\n"
    ] "0,CONNECT\r\n\r\nOK\r\n"
    ] "\r\n+IPD,0,36,192.168.68.13,45962:{\"ty­pe\":\"SYS\",\"name\":\"_M\",\"cfg\":187­}"
    UDP Msg: 192.168.68.13:45962 - {"type":"SYS","name":"_M","cfg":187}
    OK:187
    ] "\r\n+IPD,0,36,192.168.68.13,45962:{\"ty­p"
    UDP Msg: 192.168.68.13:45962 - {"typ
    ERR: UPD packet not JSON, ignore
    UDP Msg: 101.34.58.34:22867 - ,"name":"_M","cfg":187}
    ERR: UPD packet not JSON, ignore
    ] "\r\n+IPD,0,36,192.168.68.13,45962:{\"ty­pe\":\"SYS\",\"name\":\"_M\",\"cfg\":187­}"
    UDP Msg: 192.168.68.13:45962 - {"type":"SYS","name":"_M","cfg":187}
    OK:187
    ] "\r\n+IPD,0,36,192.168.68.13,45962:{\"ty­pe\":\"SYS\",\"name\":\"_M\",\"cfg\":187­}"
    UDP Msg: 192.168.68.13:45962 - {"type":"SYS","name":"_M","cfg":187}
    OK:187
    ] "\r\n+IP"
    ] "D,0,36,192.168.68.13,45962:{\"type\":\"­SYS\",\"name\":\"_M\",\"cfg\":187}"
    UDP Msg: 192.168.68.13:45962 - {"type":"SYS","name":"_M","cfg":187}
    OK:187
    ] "\r\n+IPD,0,36,192.168.68.13,45962:{\"ty­pe\":\"SYS\",\"name\":\"_M\",\"cfg\":187­}"
    UDP Msg: 192.168.68.13:45962 - {"type":"SYS","name":"_M","cfg":187}
    OK:187
    ] "\r\n+IPD,0,36,192.168.68.13,45962:{\"ty­pe\":\"SYS\",\"name\":\"_M\",\"cfg\":187­}"
    UDP Msg: 192.168.68.13:45962 - {"type":"SYS","name":"_M","cfg":187}
    OK:187
    ] "\r\n+IPD,0,36,192.168.68.13,45962:{\"ty­pe\":\"SYS\",\"name\":\"_M\",\"cfg\":187­}"
    UDP Msg: 192.168.68.13:45962 - {"type":"SYS","name":"_M","cfg":187}
    OK:187
    ] "\r\nIPD,0,36,192.168.68.13,45962:{\"typ­e\":\"SYS\",\"name\":\"_M\",\"cfg\":187}­"
    ] "\r\n+IPD,0,36,192.168.68.13,45962:{\"ty­pe\":\"SYS\",\"name\":\"_M\",\"cfg\":187­}"
    UDP Msg: 192.168.68.13:45962 - {"type":"SYS","name":"_M","cfg":187}
    OK:187
    ] "\r\n+IPD,0,36,192.168.68.13,45962:{\"ty­pe\":\"SYS\",\"name\":\"_M\",\"cfg\":187­}"
    UDP Msg: 192.168.68.13:45962 - {"type":"SYS","name":"_M","cfg":187}
    OK:187
    ] "\r\n+IPD,0,36,192.168.68.13,45962:{\"ty­pe\":\"SYS\",\"name\":\"_M\",\"cfg\":187­}"
    UDP Msg: 192.168.68.13:45962 - {"type":"SYS","name":"_M","cfg":187}
    OK:187
    ] "\r\n+IPD,0,36,192.168.68.13,45962:{\"ty­pe\":\"SYS\",\"name\":\"_M\",\"cfg\":187­}"
    UDP Msg: 192.168.68.13:45962 - {"type":"SYS","name":"_M","cfg":187}
    OK:187
    ] "\r\n+IPD,0,36,192.168.68.13,45962:{\"ty­pe\":\"SYS\""
    UDP Msg: 192.168.68.13:45962 - {"type":"SYS"
    ERR: UPD packet not JSON, ignore
    UDP Msg: 44.34.110.97:25965 - "_M","cfg":187}
    ERR: UPD packet not JSON, ignore
    ] "\r\n+IPD,0,36,192.168.68.13,45962:{\"ty­pe\":\"SYS\",\"name\":\"_M\",\"cfg\":187­}"
    UDP Msg: 192.168.68.13:45962 - {"type":"SYS","name":"_M","cfg":187}
    OK:187
    ] "\r\n+IPD,0,36,192.168.68.13,45962:{\"ty­pe\":\"SYS\",\"name\":\"_M\",\"cfg\":187­}"
    UDP Msg: 192.168.68.13:45962 - {"type":"SYS","name":"_M","cfg":187}
    OK:187
    ] "\r\n+IPD,0,36,192.168.68.13,45962:{\"ty­pe\":\"SYS\",\"name\":\"_M\",\"cfg\":187­}"
    UDP Msg: 192.168.68.13:45962 - {"type":"SYS","name":"_M","cfg":187}
    OK:187
    ] "\r\n+IPD,0,36,192.168.68.13,45962:{\"ty­pe\":\"SYS\",\"name\":\"_M\",\"cfg\":187­}"
    UDP Msg: 192.168.68.13:45962 - {"type":"SYS","name":"_M","cfg":187}
    OK:187
    ] "\r\n+IPD,0,36,192.168.68.13,45962:{\"ty­pe\":\"SYS\",\"name\":\"_M\",\"cfg\":187­}"
    UDP Msg: 192.168.68.13:45962 - {"type":"SYS","name":"_M","cfg":187}
    OK:187
    ] "\r\n+IPD,0,36,192.168.68.13,45962:{\"ty­pe\":\"SYS\",\"name\":\"_M\",\"cfg\":187­}"
    UDP Msg: 192.168.68.13:45962 - {"type":"SYS","name":"_M","cfg":187}
    OK:187
    ] "\r\n+IPD,0,36,192.168.68.13,45962:{\"ty­pe\":\"SYS\",\"name\":\"_M\",\"cfg\":187­}"
    UDP Msg: 192.168.68.13:45962 - {"type":"SYS","name":"_M","cfg":187}
    OK:187
    ] "\r\n+IPD,0,36,192.168.68.13,45962:{\"ty­pe\":\"SYS\",\"name\":\"_M\",\"cfg\":187­}"
    UDP Msg: 192.168.68.13:45962 - {"type":"SYS","name":"_M","cfg":187}
    OK:187
    ] "\r\n+IPD,0,36,192.168.68.13,45962:{\"ty­pe\":\"SYS\",\"name\":\"_M\",\"cfg\":187­}"
    UDP Msg: 192.168.68.13:45962 - {"type":"SYS","name":"_M","cfg":187}
    OK:187
    
  • in Pico / Wifi / Original Espruino
    Avatar for Sacha

    It's a bit frustrating. I waited so long for that feature ;-).

    My fealing is that there are two problems.

    First that something is mixed up resulting in wrong data. Wrong IP and trancated messages.
    I'm able to filter that out. I think this has not a crash in result.

    The second problem, truncating the last chars is resulting in a crash. Like on the last line above.
    It's the same that we get in the isolated code above without debug enabled.

    Sacha

  • in Pico / Wifi / Original Espruino
    Avatar for Sacha

    Thanks Gordon

    Without the debug enabled, i get the error and crash within a few minutes.
    When debug enabled i was also not able to reproduce it with 20 minutes !?

    I enabled debug to my projectcode. It shows the wrong ip's, fragments of the udp messages and crashes very fast. I think it makes no sense to post the projectcode. It to big.

    Here is the output. I only add a console.log of the UDP ip, port and message received. Starting with "UPD Msg: "

    The correct source ip is 192.168.68.13

    ] "\r\n+IPD,0,36,192.168.68.13,45962:{\"ty­pe\":\"SYS\",\"name\":\"_M\",\"cfg\":187­}"
    UDP Msg: 192.168.68.13:45962 - {"type":"SYS","name":"_M","cfg":187}
    ] "\r\n+IPD,0,36,192.168.68.13,45962:{\"ty­pe\":\"SYS\",\"name\":\"_M\",\"cfg\":187­}"
    UDP Msg: 192.168.68.13:45962 - {"type":"SYS","name":"_M","cfg":187}
    ] "\r\n+IPD,0,36,192.168.68.13,45962:{\"ty­pe\":\"SYS\""
    UDP Msg: 192.168.68.13:45962 - {"type":"SYS"
    UDP Msg: 44.34.110.97:25965 - "_M","cfg":187}
    ] "\r\n+IPD,0,36,192.16"
    ] "8.68.13,45962:{\"type\":\"SYS\",\"name\­":\"_M\",\"cfg\":187}"
    UDP Msg: 192.168.68.13:45962 - {"type":"SYS","name":"_M","cfg":187}
    ] "\r\n+IPD,0,36,192.168.68.13,45962:{\"ty­pe\""
    UDP Msg: 192.168.68.13:45962 - {"type"
    UDP Msg: 58.34.83.89:8787 - name":"_M","cfg":187}
    ] "\r\n+IPD,0,36,192.168.68.13,45962:{\"ty­pe\":\"SYS\",\"name\":\"_M\",\"cfg\":187­}"
    UDP Msg: 192.168.68.13:45962 - {"type":"SYS","name":"_M","cfg":187}
    ] "\r\n+IPD,0,36,192.168.68.13,45962:{\"ty­pe\":\"SYS\",\"name\":\"_M\",\"cfg\":187­}"
    UDP Msg: 192.168.68.13:45962 - {"type":"SYS","name":"_M","cfg":187}
    ] "\r\n+IPD,0,36,192.168.68.13,45962:{\"ty­pe\":\"SYS\",\"n"
    UDP Msg: 192.168.68.13:45962 - {"type":"SYS","n
    UDP Msg: 97.109.101.34:8762 - ","cfg":187}
    ] "\r\n+IPD,0,36"
    ] ",192.168.68.13,45962:{\"type\":\"SYS\",­\"name\":\"_M\",\"cfg\":187}"
    UDP Msg: 192.168.68.13:45962 - {"type":"SYS","name":"_M","cfg":187}
    ] "\r\n+IPD,0,36,192"
    ] ".168.68.13,45962:{\"type\":\"SYS\",\"na­me\":\"_M\",\"cfg\":187}"
    UDP Msg: 192.168.68.13:45962 - {"type":"SYS","name":"_M","cfg":187}
    ] "\r\n+IPD,0,36,19"
    ] "2.168.68.13,45962:{\"type\":\"SYS\",\"n­ame\":\"_M\",\"cfg\":187}"
    UDP Msg: 192.168.68.13:45962 - {"type":"SYS","name":"_M","cfg":187}
    ] "\r\n+IPD,0,36,192.168.68.13,45962:{\"ty­pe\":\"SYS\",\"name\":\""
    UDP Msg: 192.168.68.13:45962 - {"type":"SYS","name":"
    UDP Msg: 95.77.34.44:25378 - ":187}
    ] "\r\n+IPD,0,36,1"
    ] "92.168.68.13,45962:{\"type\":\"SYS\",\"­name\":\"_M\",\"cfg\":187}"
    UDP Msg: 192.168.68.13:45962 - {"type":"SYS","name":"_M","cfg":187}
    ] "\r\n+IPD,0,36,192.168.68.13,45962:{\"t"­
    UDP Msg: 192.168.68.13:45962 - {"t
    UDP Msg: 121.112.101.34:8762 - S","name":"_M","cfg":187}
    ] "\r\n+IPD,0,36,192.168.68.13,45962:{\"ty­pe\":\"SYS\",\"name\":\"_M\",\"cfg\":187­}"
    UDP Msg: 192.168.68.13:45962 - {"type":"SYS","name":"_M","cfg":187}
    ] "\r\n+IPD,0,36,192.168.68.13,45962:{\"ty­pe\":\"SYS\",\"name\":"
    UDP Msg: 192.168.68.13:45962 - {"type":"SYS","name":
    UDP Msg: 34.95.77.34:8748 - g":187}
    ] "\r\n+IPD,0,36"
    ] ",192.168.68.13,45962:{\"type\":\"SYS\",­\"name\":\"_M\",\"cfg\":187}"
    UDP Msg: 192.168.68.13:45962 - {"type":"SYS","name":"_M","cfg":187}
    ] "\r\n+IPD,0,36,192.168.68.13,45962:{\"ty­pe\":\"SYS\",\"nam"
    UDP Msg: 192.168.68.13:45962 - {"type":"SYS","nam
    UDP Msg: 101.34.58.34:19807 - "cfg":187}
    ] "\r\n+IPD,0,36,192.168.68.13,45962:{\"t"­
    UDP Msg: 192.168.68.13:45962 - {"t
    UDP Msg: 121.112.101.34:8762 - S","name":"_M","cfg":187}
    ] "\r\n+IPD"
    ] ",0,36,192.168.68.13,45962:{\"type\":\"S­YS\",\"name\":\"_M\",\"cfg\":187}"
    UDP Msg: 192.168.68.13:45962 - {"type":"SYS","name":"_M","cfg":187}
    ] "\r\n+IPD,0,36,192.168.68.13,45962:{\"ty­pe\":\"SYS\",\"name\":\"_M\",\"cfg\":187­}"
    UDP Msg: 192.168.68.13:45962 - {"type":"SYS","name":"_M","cfg":187}
    ] "\r\n+IPD,0,36,192.168.68.13,45962:{\"ty­pe\":\""
    UDP Msg: 192.168.68.13:45962 - {"type":"
    UDP Msg: 83.89.83.34:8748 - me":"_M","cfg":187}
    ] "\r\n+IPD,0,36,192.168.68.13,45962:{\"ty­pe\":\"SYS\""
    UDP Msg: 192.168.68.13:45962 - {"type":"SYS"
    UDP Msg: 44.34.110.97:25965 - "_M","cfg":187}
    ] "\r\n+IPD,0,36,192.168.68.13,45962:{\"ty­pe\":\"SYS\",\"name\":\"_M\",\"cfg\":187­"
    UDP Msg: 192.168.68.13:45962 - {"type":"SYS","name":"_M","cfg":187
    > 
    // crashed
    
  • in Pico / Wifi / Original Espruino
    Avatar for Sacha

    "listening" is not implemented. Espruino code reduced to:

    /*
    ESPRUINO WIFI
    */
    var WIFI_NAME = "Paradise";
    var WIFI_OPTIONS = { password : "XYZ" };
    var PORT = 7077;
    var wifi = require("EspruinoWiFi");
    var dgram = require('dgram');
    wifi.connect(WIFI_NAME, WIFI_OPTIONS, function (err) {
        if (err) {
            console.log("Connection error: " + err);
        }
        wifi.getIP(function (f, ip) {
            console.log("Connected: " + ip.ip);
            // UDP Broadcast
            var client = dgram.createSocket("udp4");
    
            client.on('message', function (message, rinfo) {
                console.log('UDP Msg: ' + rinfo.address + ':' + rinfo.port +' - ' + message);
                try {
                    var u = JSON.parse(message);
                    console.log('OK:'+u.cfg);
                }
                catch(err) {
                    console.log('ERR: UPD packet not JSON, ignore');
                }
            });
            client.bind(PORT);
        });
    });
    
Actions