• This is running on the linux version of espurino, and will apply to other boards too.

    It looks like the dSnd part of the underyling socket is growing each second evert time the model is updated...

    I've tried to do a simplier use case, but have not yet got a simple case working, so I'll just post what I have so far...

    the output of trace() shows the dSnd string getting larger each iteration...

    >trace();
    #1[r2,l1] Object {
      #2[r1,l2] Name String [1 blocks] "\xFF"    #3[r1,l2] Object {
          #6[r1,l2] Name String [1 blocks] "timers"        #7[r2,l1] Array(8) [
              #382[r1,l2] Name Integer 1            #378[r1,l1] Object {
                  #380[r1,l2] Name String [1 blocks] "time"= int 705003
                  #381[r1,l2] Name String [1 blocks] "interval"= int 1000000
                  #379[r1,l2] Name String [1 blocks] "callback"                #358[r2,l1] ...
     
                }
              #834[r1,l2] Name Integer 3            #830[r1,l1] Object {
                  #819[r1,l2] Name String [1 blocks] "time"= int 693088
                  #820[r1,l2] Name String [1 blocks] "interval"= int 1000000
                  #803[r1,l2] Name String [1 blocks] "callback"                #890[r2,l1] Function {
                      #867[r1,l2] Name String [1 blocks] "\xFFcod"                    #1006[r1,l1] FlatString [3 blocks] "var s=JSON.stringify(model);\n    ws.send(s);\n    s=null;"
                      #779[r1,l2] Name String [1 blocks] "\xFFsco"                    #847[r2,l1] Function {
                          #781[r1,l2] Name Param "ws"                         #926[r1,l1] Object {
                              #927[r1,l2] Name String [2 blocks] "__proto__"                            #151[r4,l1] ...
     
                              #951[r1,l2] Name String [1 blocks] "socket"                            #945[r1,l1] Object {
                                  #944[r1,l2] Name String [2 blocks] "__proto__"                                #394[r4,l1] ...
     
                                  #863[r1,l2] Name String [1 blocks] "dSnd"                                #5[r1,l1] String [1171 blocks] "\x81j{\"setpoint\":66,\"timer\":\"90\",­\"temp\":[50,50],\"counter\":5373,\"coun­terstr\":\"01:29:34\",\"free\":3415,\"us­age\":681}\x81j{\"setpoint\":66,\"timer\­":\"90\",\"temp\":[50,50],\"counter\":53­73,\"counterstr\":\"01:29:34\",\"free\":­3415,\"usage\":681}\x81j{\"setpoint\":66­,\"timer\":\"90\",\"temp\":[50,50],\"cou­nter\":5400,\"counterstr\":\"01:29:33\",­\"free\":3238,\"usage\":858}\x81j{\"setp­oint\":66,\"timer\":\"90\",\"temp\":[50,­50],\"counter\":5399,\"counterstr\":\"01­:30:00\",\"free\":3234,\"usage\":862}\x8­1j{\"setpoint\":66,\"timer\":\"90\",\"te­mp\":[50,50],\"counter\":5398,\"counters­tr\":\"01:29:59\",\"free\":3229,\"usage\­":867}\x81j{\"setpoint\":66,\"timer\":\"­90\",\"temp\":[50,50],\"counter\":5397,\­"counterstr\":\"01:29:58\",\"free\":3225­,\"usage\":871}\x81j{\"setpoint\":66,\"t­imer\":\"90\",\"temp\":[50,50],\"counter­\":5396,\"counterstr\":\"01:29:57\",\"fr­ee\":3220,\"usage\":876}\x81j{\"setpoint­\":66,\"timer\":\"90\",\"temp\":[50,50],­\"counter\":5395,\"counterstr\":\"01:29:­56\",\"free\":3216,\"usage\":880}\x81j{\­"setpoint\":66,\"timer\":\"90\",\"temp\"­:[50,50],\"counter\":5394,\"counterstr\"­:\"01:29:55\",\"free\":3211,\"usage\":88­5}\x81j{\"setpoint\":66,\"timer\":\"90\"­,\"temp\":[50,50],\"counter\":5393,\"cou­nterstr\":\"01:29:54\",\"free\":3207,\"u­sage\":889}\x81j{\"setpoint\":66,\"timer­\":\"90\",\"temp\":[50,50],\"counter\":5­392,\"counterstr\":\"01:29:53\",\"free\"­:3202,\"usage\":894}\x81j{\"setpoint\":6­6,\"timer\":\"90\",\"temp\":[50,50],\"co­unter\":5391,\"counterstr\":\"01:29:52\"­,\"free\":3198,\"usage\":898}\x81j{\"set­point\":66,\"timer\":\"90\",\"temp\":[50­,50],\"counter\":5390,\"counterstr\":\"0­1:29:51\",\"free\":3193,\"usage\":903}\x­81j{\"setpoint\":66,\"timer\":\"90\",\"t­emp\":[50,50],\"counter\":5389,\"counter­str\":\"01:29:50\",\"free\":3189,\"usage­\":907}\x81j{\"setpoint\":66,\"timer\":\­"90\",\"temp\":[50,50],\"counter\":5388,­\"counterstr\":\"01:29:49\",\"free\":318­4,\"usage\":912}\x81j{\"setpoint\":66,\"­timer\":\"90\",\"temp\":[50,50],\"counte­r\":5387,\"counterstr\":\"01:29:48\",\"f­ree\":3180,\"usage\":916}\x81j{\"setpoin­t\":66,\"timer\":\"90\",\"temp\":[50,50]­,\"counter\":5386,\"counterstr\":\"01:29­:47\",\"free\":3175,\"usage\":921}\x81j{­\"setpoint\":66,\"timer\":\"90\",\"temp\­":[50,50],\"counter\":5385,\"counterstr\­":\"01:29:46\",\"free\":3171,\"usage\":9­25}\x81j{\"setpoint\":66,\"timer\":\"90\­",\"temp\":[50,50],\"counter\":5384,\"co­unterstr\":\"01:29:45\",\"free\":3166,\"­usage\":930}\x81j{\"setpoint\":66,\"time­r\":\"90\",\"temp\":[50,50],\"counter\":­5383,\"counterstr\":\"01:29:44\",\"free\­":3162,\"usage\":934}\x81j{\"setpoint\":­66,\"timer\":\"90\",\"temp\":[50,50],\"c­ounter\":5382,\"counterstr\":\"01:29:43\­",\"free\":3157,\"usage\":939}\x81j{\"se­tpoint\":66,\"timer\":\"90\",\"temp\":[5­0,50],\"counter\":5381,\"counterstr\":\"­01:29:42\",\"free\":3153,\"usage\":943}\­x81j{\"setpoint\":66,\"timer\":\"90\",\"­temp\":[50,50],\"countermore.. .... 
    
About

Avatar for Wilberforce @Wilberforce started